Set SEC_KEEP on section XXX for undefined __start_XXX/__stop_XXX
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Jan 2010 01:43:23 +0000 (01:43 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Jan 2010 01:43:23 +0000 (01:43 +0000)
commitbde6f3eb6dff94cea1d471e15c6154d55d49820f
tree33ff2b586001fc671d83306de7968fdaab523c67
parentb903363e43c8ea7d9b37b599bc15591036d03690
Set SEC_KEEP on section XXX for undefined __start_XXX/__stop_XXX

bfd/

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

PR ld/11133
* elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
undefined __start_XXX/__stop_XXX in all input files and set
SEC_KEEP.

ld/testsuite/

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

PR ld/11133
* ld-gc/gc.exp: Run start.

* ld-gc/start.d: New.
* ld-gc/start.s: Likewise.
bfd/ChangeLog
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-gc/gc.exp
ld/testsuite/ld-gc/start.d [new file with mode: 0644]
ld/testsuite/ld-gc/start.s [new file with mode: 0644]