OSDN Git Service

Check relocations in note sections for --gc-sections.
authorhjl <hjl>
Thu, 9 Jun 2011 04:52:12 +0000 (04:52 +0000)
committerhjl <hjl>
Thu, 9 Jun 2011 04:52:12 +0000 (04:52 +0000)
commitc0cd7df93b3883cddc664a993779dced118fbb56
treed885af6c6d18ceedb5accf770228e22aa44532ce
parent40600c551c489342dedf1244cda60a8fc1af0084
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]