This is to inform that the bug reported for 2.17 almost a year ago - that the --cref option to "ld" fails - has become worse in the most recent releases. In the early 2.17 releases the --cref just produced garbage output. Now it causes the linking process itself to fail:

gcc  -Xlinker --cref hello.c -o hello
collect2: ld terminated with signal 11 [Segmentation fault]


To inform about version of gcc, as etc, I have attached a run of the same command, just with -v option added.

best regards
--
Peder Chr. Nørgaard             Senior System Developer, M. Sc.
Ericsson Denmark A/S, Telebit Division
Skanderborgvej 232              tel: +45 30 91 84 31
DK-8260 Viby J, Denmark         fax: +45 89 38 51 01
        e-mail: [EMAIL PROTECTED]
(old e-mail 2000-2003: [EMAIL PROTECTED])
         (old e-mail 1992-2000: [EMAIL PROTECTED])
----------------------------------------------------------------
This communication is confidential and intended solely for the
addressee(s). Any unauthorized review, use, disclosure or distribution
is prohibited. If you believe this message has been sent to you in
error, please notify the sender by replying to this transmission and
delete the message without disclosing it. Thank you.

E-mail including attachments is susceptible to data corruption,
interruption, unauthorized amendment, tampering and viruses, and we
only send and receive e-mails on the basis that we are not liable for
any such corruption, interception, amendment, tampering or viruses or
any consequences thereof.
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v 
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr 
--enable-shared --with-system-zlib --libexecdir=/usr/lib 
--without-included-gettext --enable-threads=posix --enable-nls 
--with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.3 20070429 (prerelease) (Debian 4.1.2-5)
 /usr/lib/gcc/i486-linux-gnu/4.1.3/cc1 -quiet -v hello.c -quiet -dumpbase 
hello.c -mtune=i686 -auxbase hello -version -o /tmp/ccbV4SGC.s
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory 
"/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.1.3/include
 /usr/include
End of search list.
GNU C version 4.1.3 20070429 (prerelease) (Debian 4.1.2-5) (i486-linux-gnu)
        compiled by GNU C version 4.1.3 20070429 (prerelease) (Debian 4.1.2-5).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=127973
Compiler executable checksum: 10d7553a8e2a55c8ca9831bcbe56a540
 as -V -Qy -o /tmp/ccMkpJN7.o /tmp/ccbV4SGC.s
GNU assembler version 2.17.50 (i486-linux-gnu) using BFD version (GNU Binutils 
for Debian) 2.17.50.20070426
 /usr/lib/gcc/i486-linux-gnu/4.1.3/collect2 --eh-frame-hdr -m elf_i386 
--hash-style=gnu -dynamic-linker /lib/ld-linux.so.2 -o hello 
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crt1.o 
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crti.o 
/usr/lib/gcc/i486-linux-gnu/4.1.3/crtbegin.o 
-L/usr/lib/gcc/i486-linux-gnu/4.1.3 -L/usr/lib/gcc/i486-linux-gnu/4.1.3 
-L/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib -L/lib/../lib 
-L/usr/lib/../lib --cref /tmp/ccMkpJN7.o -lgcc --as-needed -lgcc_s 
--no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed 
/usr/lib/gcc/i486-linux-gnu/4.1.3/crtend.o 
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crtn.o
collect2: ld terminated with signal 11 [Segmentation fault]

Reply via email to