old-cross-binutils/ld/testsuite/ld-gc
H.J. Lu bba037e0ae Always keep sections marked with SEC_KEEP
SEC_KEEP check in elf_gc_sweep was missing in commit:

commit bde6f3eb6d
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Jan 8 01:43:23 2010 +0000

    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.

This patch adds SEC_KEEP check to elf_gc_sweep.

bfd/

	PR ld/19161
	* elflink.c (elf_gc_sweep): Always keep sections marked with
	SEC_KEEP.

ld/testsuite/

	PR ld/19161
	* ld-gc/gc.exp: Run pr19161 test.
	* ld-gc/pr19161-1.c: New file.
	* ld-gc/pr19161-2.c: Likewise.
	* ld-gc/pr19161.d: Likewise.
2015-10-22 12:23:03 -07:00
..
abi-note.d
abi-note.s
all-debug-sections.d Garbage collecting debug sections 2015-03-25 20:42:00 +10:30
all-debug-sections.s Garbage collecting debug sections 2015-03-25 20:42:00 +10:30
dummy.s
gc.c
gc.exp Always keep sections marked with SEC_KEEP 2015-10-22 12:23:03 -07:00
libpersonality.s
noent.d
noent.s
personality.d
personality.s
pr11218-1.c
pr11218-2.c
pr11218.d
pr13683.c
pr13683.d
pr14265.c
pr14265.d Fix garbage collection of common symbols 2015-01-19 21:26:30 +10:30
pr14265.t
pr18223.d xfail pr18223 test for tic6x 2015-04-15 12:01:33 +09:30
pr18223.s Add a testcase for PR ld/18223 2015-04-10 04:15:53 -07:00
pr19161-1.c Always keep sections marked with SEC_KEEP 2015-10-22 12:23:03 -07:00
pr19161-2.c Always keep sections marked with SEC_KEEP 2015-10-22 12:23:03 -07:00
pr19161.d Always keep sections marked with SEC_KEEP 2015-10-22 12:23:03 -07:00
start.d
start.s