Bug 5943 - Linker crash on undefined symbols
Summary: Linker crash on undefined symbols
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.19
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-15 17:57 UTC by H.J. Lu
Modified: 2008-03-24 13:36 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2008-03-15 17:57:54 UTC
On Linux/Intel64, "make check" in ld leads to linker on undefined symbols:

gcc -B/export/build/gnu/binutils/build-x86_64-linux/ld/tmpdir/ld/
-L/usr/local/x86_64-unknown-linux-gnu/lib64 -L/usr/local/lib64 -L/lib64
-L/usr/lib64 -L/usr/local/x86_64-unknown-linux-gnu/lib -L/usr/local/lib -L/lib
-L/usr/lib  -o tmpdir/vp.so -shared  tmpdir/sh1p.o tmpdir/sh2p.o
Executing on host: sh -c {gcc
-B/export/build/gnu/binutils/build-x86_64-linux/ld/tmpdir/ld/
-L/usr/local/x86_64-unknown-linux-gnu/lib64 -L/usr/local/lib64 -L/lib64
-L/usr/lib64 -L/usr/local/x86_64-unknown-linux-gnu/lib -L/usr/local/lib -L/lib
-L/usr/lib  -o tmpdir/vp.so -shared  tmpdir/sh1p.o tmpdir/sh2p.o 2>&1} 
/dev/null ld.tmp (timeout = 300)
collect2: ld terminated with signal 11 [Segmentation fault]

Program received signal SIGSEGV, Segmentation fault.
0x000000000043c2e9 in elf64_x86_64_finish_dynamic_symbol (output_bfd=0x74c310, 
    info=0x7375a0, h=0x74ec00, sym=0x7fff77001d10)
    at /export/linux/src/binutils/binutils/bfd/elf64-x86-64.c:3368
3368              rela.r_addend = (h->root.u.def.value
Comment 1 H.J. Lu 2008-03-24 13:36:39 UTC
Fixed by

http://sourceware.org/ml/binutils/2008-03/msg00111.html