This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

binutils-2.15: sh-elf-ld segfault


Hi,

I am experiencing a segfault with binutils-2.15-branch and
gcc-3.4-branch (20040317) for sh-rtems(elf):


# sh-rtems4.7-gcc --pipe -B../../../../../lib/
-B../../../../../gensh4/lib/ -specs bsp_specs -qrtems -m4 -ml  -O4  -g
-Wall         -Wl,-Map,o-optimize/hello.map  -o o-optimize/hello.exe
o-optimize/init.o ../../../../../gensh4/lib/no-dpmem.rel
../../../../../gensh4/lib/no-event.rel
../../../../../gensh4/lib/no-msg.rel ../../../../../gensh4/lib/no-mp.rel
../../../../../gensh4/lib/no-part.rel
../../../../../gensh4/lib/no-signal.rel
../../../../../gensh4/lib/no-timer.rel
../../../../../gensh4/lib/no-rtmon.rel
collect2: ld terminated with signal 11 [Segmentation fault], core dumped

This call to collect2 is expanded into:
# /opt/rtems-4.7/bin/sh-rtems4.7-ld -m shlelf -dc -dp -N -e _start -o
o-optimize/hello.exe ../../../../../gensh4/lib/start.o
-L../../../../../lib -L../../../../../gensh4/lib
-L/opt/rtems-4.7/lib/gcc/sh-rtems4.7/3.4.0/ml/m4
-L/opt/rtems-4.7/lib/gcc/sh-rtems4.7/3.4.0
-L/opt/rtems-4.7/lib/gcc/sh-rtems4.7/3.4.0/../../../../sh-rtems4.7/lib/ml/m4 -L/opt/rtems-4.7/lib/gcc/sh-rtems4.7/3.4.0/../../../../sh-rtems4.7/lib -Map o-optimize/hello.map o-optimize/init.o ../../../../../gensh4/lib/no-dpmem.rel ../../../../../gensh4/lib/no-event.rel ../../../../../gensh4/lib/no-msg.rel ../../../../../gensh4/lib/no-mp.rel ../../../../../gensh4/lib/no-part.rel ../../../../../gensh4/lib/no-signal.rel ../../../../../gensh4/lib/no-timer.rel ../../../../../gensh4/lib/no-rtmon.rel -lgcc --start-group -lrtemsbsp -lrtemscpu -lc -lgcc --end-group -T ../../../../../gensh4/lib/linkcmds -lgcc
Segmentation fault (core dumped)

Stack trace:
#0  bfd_hash_lookup (table=0x8107520, string=0x8ac5578 "_HeapSize",
create=0, copy=0)
    at ../../binutils-2.15/bfd/hash.c:388
#1  0x08051252 in lang_symbol_definition_iteration (name=0x8ac5578
"_HeapSize")
    at ../../binutils-2.15/ld/ldlang.c:1966
#2  0x08059967 in fold_name (tree=0x8ac1178, current_section=0x8abe9d4,
    allocation_done=lang_final_phase_enum, dot=581093132230197250)
    at ../../binutils-2.15/ld/ldexp.c:476
#3  0x08059b93 in exp_fold_tree (tree=0x8ac1178,
current_section=0x8abe9d4,
    allocation_done=lang_final_phase_enum, dot=0, dotp=0x8107500)
    at ../../binutils-2.15/ld/ldexp.c:741
#4  0x08059735 in fold_trinary (tree=0x8ac11f4,
current_section=0x8abe9d4,
    allocation_done=lang_final_phase_enum, dot=0, dotp=0x8107500)
    at ../../binutils-2.15/ld/ldexp.c:440
#5  0x08059b64 in exp_fold_tree (tree=0x8ac11f4,
current_section=0x8abe9d4,
    allocation_done=lang_final_phase_enum, dot=0, dotp=0x8107500)
    at ../../binutils-2.15/ld/ldexp.c:653
#6  0x0805162d in print_assignment (assignment=0x8ac1218,
output_section=0x8abe9d4)
    at ../../binutils-2.15/ld/ldlang.c:2231
#7  0x08051e56 in print_statement_list (s=0x8ac1218, os=0x8abe9d4)
    at ../../binutils-2.15/ld/ldlang.c:2566
#8  0x0805200f in print_statements () at
../../binutils-2.15/ld/ldlang.c:2648
#9  0x0804febe in lang_map () at ../../binutils-2.15/ld/ldlang.c:713
#10 0x08056ccd in main (argc=0, argv=0xbff82b84) at
../../binutils-2.15/ld/ldmain.c:474

Any ideas about what goes wrong?

Ralf



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]