reproducable segfault in binutils-2.14's ld

Patrick Mauritz patrick.mauritz at gmail.com
Wed Sep 1 16:50:44 PDT 2004


I managed to crash binutils-2.14's ld reliably with the code found
here: http://openbios.org/~oxygene/dfly-ld-crashtest.tar.bz2

run build.sh within to reproduce.

current results so far (thanks to corecode):
stream.o is the culprit (gcc -o toke stream.o is enough to make it
crash, with CCVER=gcc34).
the crash can be traced back to

#0  0x805fb2a in elf_link_add_object_symbols (abfd=0x80fe700, info=0x80f1c20)
at /usr/.build/src/gnu/usr.bin/binutils214/libbfd/../../../../contrib/binutils-2.14/bfd/elflink.h:2081

2081                  if ((h->root.u.def.section->owner->flags & DYNAMIC) == 0)

where owner==0x0

exactly the same object files link properly with gcc2 and binutils2.12


patrick mauritz





More information about the Bugs mailing list