binutils-gdb/ld/testsuite/ld-gc
Alan Modra c4621b339e Fix garbage collection of common symbols
Running lang_common before garbage collection means slightly less work
in garbage collection code, since common symbols should no longer
appear there.  It does have the side effect of keeping linker script
symbols (at least those defined outside of sections) global too,
hence some testsuite churn.

bfd/
	PR 17165
	* elf-bfd.h (ELF_COMMON_DEF): Note that this might be true for
	linker script assignments too.
	* elflink.c (elf_gc_sweep_symbol): Don't drop ELF_COMMON_DEF syms.
	(bfd_elf_gc_mark_dynamic_ref_symbol): Similarly.
ld/
	PR 17165
	* ldlang.c (lang_process): Run lang_common before lang_gc_sections.
ld/testsuite/
	* ld-gc/pr14265.d,
	* ld-cris/tls-gc-68.d,
	* ld-cris/tls-gc-69.d,
	* ld-cris/tls-gc-70.d,
	* ld-cris/tls-gc-71.d,
	* ld-cris/tls-gc-75.d,
	* ld-cris/tls-gc-76.d,
	* ld-cris/tls-gc-79.d,
	* ld-mmix/bpo-10.d,
	* ld-mmix/bpo-11.d: Update.
2015-01-19 21:26:30 +10:30
..
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
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 ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
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
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