DragonFly BSD
DragonFly bugs List (threaded) for 2004-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

reproducable segfault in binutils-2.14's ld


From: Patrick Mauritz <patrick.mauritz@xxxxxxxxx>
Date: Thu, 2 Sep 2004 01:49:53 +0200

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]