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 Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
abi-note.s Always keep SHT_NOTE sections 2010-01-07 13:44:37 +00:00
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 Properly check undefined symbols when gc_sections is active. 2010-01-26 13:21:36 +00:00
gc.c * ld-gc/gc.c (dummy_func): New function - present so that 2008-10-29 08:29:02 +00:00
gc.exp Always keep sections marked with SEC_KEEP 2015-10-22 12:23:03 -07:00
libpersonality.s PR ld/13177 2011-10-19 07:17:21 +00:00
noent.d
noent.s
personality.d * common.h: Fix case of "Meta". 2013-01-10 09:49:22 +00:00
personality.s PR ld/13177 2011-10-19 07:17:21 +00:00
pr11218-1.c Properly check undefined symbols when gc_sections is active. 2010-01-26 13:21:36 +00:00
pr11218-2.c * ld/testsuite/ld-gc/pr11218-2.c: Declare 2010-11-16 23:41:38 +00:00
pr11218.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
pr13683.c PR ld/13683 2012-02-22 16:27:35 +00:00
pr13683.d * archures.c: Add some more MSP430 machine numbers. 2013-05-02 21:06:15 +00:00
pr14265.c PR ld/14265 2012-08-14 08:31:57 +00:00
pr14265.d Fix garbage collection of common symbols 2015-01-19 21:26:30 +10:30
pr14265.t PR ld/14265 2012-08-14 08:31:57 +00:00
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 * common.h: Fix case of "Meta". 2013-01-10 09:49:22 +00:00
start.s * ld-elf/elf.exp: Force 32-bit start address for alpha. 2011-03-30 17:41:36 +00:00