Re: r245741 (clang as cc) can not build binaries for GEODE processor

From: Lev Serebryakov <lev_at_FreeBSD.org>
Date: Fri, 22 Feb 2013 23:57:42 +0400
Hello, Dimitry.
You wrote 22 февраля 2013 г., 20:14:50:

DA> As Joerg Sonnenberger mentioned to me, the address 0x10351d6 you show in
DA> the gdb session seems to be quite high, possibly pointing to some shared
DA> library.  Maybe you can try to figure out which library it is?
 Ok, very simple "hello, world!" program crashes too! And I have debug
 symbols for it ;-)

Program terminated with signal 4, Illegal instruction.
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x080483e9 in _start1 ()
(gdb) where
#0  0x080483e9 in _start1 ()
#1  0x08048398 in _start ()
#2  0x00000000 in ?? ()
(gdb) x/i $pc
0x80483e9 <_start1+73>: nopl   0x0(%eax)
(gdb)

 This program was built with:

cc -O99 -g -o test test.c

cc --version
FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221
Target: i386-unknown-freebsd10.0
Thread model: posix

 test.c could consist of empty main() function.

  So, by default clang from r247144 still (or again?) has problems with
long NOPs.

-- 
// Black Lion AKA Lev Serebryakov <lev_at_FreeBSD.org>
Received on Fri Feb 22 2013 - 18:57:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:35 UTC