Check relocations in note sections for --gc-sections.
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Jun 2011 04:52:15 +0000 (04:52 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Jun 2011 04:52:15 +0000 (04:52 +0000)
commit240077501163f169043c1d87ce05cd57f0e9ee3a
treefb6ec993fc0b8832f3ee562ccc8849c4cae36e0e
parent61220854262b44474cf3e95f7594d69a73fbb63a
Check relocations in note sections for --gc-sections.

bfd/

2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12851
* elflink.c (elf_gc_sweep): Don't check SHT_NOTE sections here.
(bfd_elf_gc_sections): Also check SHT_NOTE sections.

ld/testsuite/

2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12851
* ld-elf/pr12851.d: New.
* ld-elf/pr12851.s: Likewise.
bfd/ChangeLog
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/pr12851.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr12851.s [new file with mode: 0644]