Properly check undefined symbols when gc_sections is active.
commit9d0a14244a702b4e285513b8378ab1883441a425
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 26 Jan 2010 13:21:35 +0000 (26 13:21 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 26 Jan 2010 13:21:35 +0000 (26 13:21 +0000)
tree7bd098fec45adcb7e62f756b7dd49712c6a007dd
parente10a4d0a71f95397fad48d8ca05cf774a1cc2d11
Properly check undefined symbols when gc_sections is active.

bfd/

2010-01-26  Alan Modra  <amodra@gmail.com>
    H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11218
* elflink.c (elf_link_output_extsym): Do not ignore undefined
symbols with ref_regular set when gc_sections is active.

ld/testsuite/

2010-01-26  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11218
* ld-gc/dummy.s: New.
* ld-gc/pr11218-1.c: Likewise.
* ld-gc/pr11218-2.c: Likewise.
* ld-gc/pr11218.d: Likewise.
bfd/ChangeLog
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-gc/dummy.s [new file with mode: 0644]
ld/testsuite/ld-gc/gc.exp
ld/testsuite/ld-gc/pr11218-1.c [new file with mode: 0644]
ld/testsuite/ld-gc/pr11218-2.c [new file with mode: 0644]
ld/testsuite/ld-gc/pr11218.d [new file with mode: 0644]