------- Comment #1 from fxcoudert at gcc dot gnu dot org 2006-01-04 12:16 ------- With newer binutils (2.16.1), what happens is:
[EMAIL PROTECTED]:/tmp/debug/ibin/stage2-gcc$ /home/users/c/co/coudert/ppc64-linux/gfortran/gfortran_libs/ppc64-linux/bin/ld --eh-frame-hdr -V -Qy -m elf64ppc -dynamic-linker /lib64/ld64.so.1 -o build/genchecksum /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o /tmp/debug/ibin/./prev-gcc/crtbegin.o -L/tmp/debug/ibin/./prev-gcc -L/lib/../lib64 -L/usr/lib/../lib64 build/genchecksum.o ../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /tmp/debug/ibin/./prev-gcc/crtsavres.o /tmp/debug/ibin/./prev-gcc/crtend.o /usr/lib/../lib64/crtn.o GNU ld version 2.16.1 Supported emulations: elf64ppc elf32ppclinux elf32ppc elf32ppcsim /home/users/c/co/coudert/ppc64-linux/gfortran/gfortran_libs/ppc64-linux/bin/ld: warning: powerpc:common architecture of input file `../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(md5.o)' is incompatible with powerpc:common64 output /home/users/c/co/coudert/ppc64-linux/gfortran/gfortran_libs/ppc64-linux/bin/ld: warning: powerpc:common architecture of input file `../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(fopen_unlocked.o)' is incompatible with powerpc:common64 output /home/users/c/co/coudert/ppc64-linux/gfortran/gfortran_libs/ppc64-linux/bin/ld: warning: powerpc:common architecture of input file `../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(xstrerror.o)' is incompatible with powerpc:common64 output /home/users/c/co/coudert/ppc64-linux/gfortran/gfortran_libs/ppc64-linux/bin/ld: can not size stub section: Bad value Segmentation fault The backtrace for the ld segfault is: Program received signal SIGSEGV, Segmentation fault. bfd_putb32 (data=Unhandled dwarf expression opcode 0x93 ) at libbfd.c:594 594 addr[3] = data & 0xff; (gdb) where #0 bfd_putb32 (data=Unhandled dwarf expression opcode 0x93 ) at libbfd.c:594 #1 0x1004953c in ppc_build_one_stub (gen_entry=0x1014dbe8, in_arg=0x10139790) at elf64-ppc.c:7899 #2 0x10034b4c in bfd_hash_traverse (table=0x10148a58, func=0x10048a10 <ppc_build_one_stub>, info=0x10139790) at hash.c:498 #3 0x1004dfc4 in ppc64_elf_build_stubs (emit_stub_syms=0, info=0x0, stats=0x10139790) at elf64-ppc.c:9313 #4 0x1001bb04 in gldelf64ppc_finish () at eelf64ppc.c:407 #5 0x10016ec0 in ldemul_finish () at ldemul.c:91 #6 0x100100a4 in lang_process () at ldlang.c:4886 #7 0x10013a8c in main (argc=269719560, argv=0x10130000) at ../ld/ldmain.c:458 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25665