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]

ld crash in coff_thumb_pcrel_common


ld is crashing when I'm trying to compile a simple "Hello, world!".
Hopefully I've included all the necessary information below. If you need
more, please ask. Any idea what's gone wrong?

Thanks,
Shaun


--target=arm-wince-pe
binutils-2.14
gcc-3.3
newlib-1.11.0

/tools/wince/lib/gcc-lib/arm-wince-pe/3.3/collect2 -X -o hello.exe /tools/wince/lib/gcc-lib/arm-wince-pe/3.3/../../../../arm-wince-pe/lib/crt0.o -L/tools/wince/lib/gcc-lib/arm-wince-pe/3.3 -L/tools/wince/lib/gcc-lib/arm-wince-pe/3.3/../../../../arm-wince-pe/lib /tmp/cczLQRpb.o -lgcc -lc -lwinsock -lcoredll -lgcc
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/tools/wince/lib/gcc-lib/arm-wince-pe/3.3/../../../../arm-wince-pe/bin/ld: /tools/wince/lib/gcc-lib/arm-wince-pe/3.3/../../../../arm-wince-pe/lib/libc.a(startup.o): illegal symbol index in reloc: 2883585
[clip]

(gdb) bt
#0  0x080703e6 in coff_thumb_pcrel_common (abfd=0x80bd1f0,
    reloc_entry=0x80b8400, symbol=0x80ee538, data=0x80fd1f8,
    input_section=0x82d54b8, output_bfd=0x0, error_message=0x82cce20,
    btype=bunknown) at ../../../binutils-2.13.91/bfd/coff-arm.c:787
#1  0x08079895 in _bfd_coff_link_input_bfd (finfo=0xbfffddc0,
    input_bfd=0x80ee538) at ../../../binutils-2.13.91/bfd/cofflink.c:2267
#2  0x08078b8f in process_embedded_commands (output_bfd=0x80bd1f0,
    info=0x80b8400, abfd=0xbfffde78)
    at ../../../binutils-2.13.91/bfd/cofflink.c:1240
#3  0x080572ee in split_sections (abfd=0x1, info=0x0)
    at ../../../binutils-2.13.91/ld/ldwrite.c:429
#4  0x080553fc in main (argc=0, argv=0x8052f76)
    at ../../../binutils-2.13.91/ld/ldmain.c:474
#5  0x420156a4 in ?? ()


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