binutils-gdb/ld/testsuite/ld-gc
Alan Modra 5789f845fb --gc-sections with groups and start/stop syms
The testcases added here show situations where synthesized start/stop
symbols don't cause their associated input sections to be marked.
Fixed with the elflink.c and ldlang.c changes.

bfd/
	PR 27500
	* elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
	processing not when start/stop symbol section is unmarked but
	on first time a start/stop symbol is processed.
ld/
	* ldlang.c (insert_undefined): Don't mark symbols here.
	(lang_mark_undefineds): Do so here instead, new function.
	(lang_process): Call lang_mark_undefineds.
	* testsuite/ld-gc/start3.d,
	* testsuite/ld-gc/start3.s: New test.
	* testsuite/ld-gc/start4.d,
	* testsuite/ld-gc/start4.s: New test.
	* testsuite/ld-gc/gc.exp: Run them.
2021-03-03 17:46:36 +10:30
..
abi-note.d ld-gc tests on underscore targets 2021-03-03 17:46:36 +10:30
abi-note.s
all-debug-sections.d Remove run_dump_test support for objcopy as a dump program 2018-09-15 16:24:18 +09:30
all-debug-sections.s
dummy.s
gc.c
gc.exp --gc-sections with groups and start/stop syms 2021-03-03 17:46:36 +10:30
libpersonality.s
noent.d PR26265, Spurious 'gc-sections requires ... when --init or --fini 2020-07-20 22:21:11 +09:30
noent.s
personality.d Consolidate run_dump_test 2018-09-15 16:56:55 +09:30
personality.s
pr11218-1.c
pr11218-2.c
pr11218.d [ARM] FDPIC: Update testsuite so that many tests pass with arm*-uclinuxfdpiceabi. 2018-04-25 21:13:14 +00:00
pr13683.c
pr13683.d Remove sh5 and sh64 support 2018-04-16 15:29:39 +09:30
pr14265.c
pr14265.d
pr14265.t
pr18223.d
pr18223.s
pr19161-1.c
pr19161-2.c
pr19161.d Remove pr19161 test hppa xfail 2017-08-23 08:58:42 +09:30
pr19167.d ld-gc tests on underscore targets 2021-03-03 17:46:36 +10:30
pr19167a.s ld-gc tests on underscore targets 2021-03-03 17:46:36 +10:30
pr19167b.s
pr20022.d Revise "ld testsuite use of notarget" 2018-07-11 16:39:04 +09:30
pr20022a.s Add size to bar in ld-gc/pr20022a.s 2017-06-14 05:52:12 -07:00
pr20022b.s Revise "ld testsuite use of notarget" 2018-07-11 16:39:04 +09:30
pr20306.c
pr20306.d
pr20882.d GC: Also check the local debug definition section 2018-03-14 04:23:40 -07:00
pr20882a.s pr20882 testcase 2017-05-18 14:28:17 +09:30
pr20882b.s GC: Also check the local debug definition section 2018-03-14 04:23:40 -07:00
pr20882c.s pr20882 testcase 2017-05-18 14:28:17 +09:30
skip-map-discarded.d ld: Add --no-print-map-discarded option 2019-04-11 10:16:31 -07:00
skip-map-discarded.map ld: Add --no-print-map-discarded option 2019-04-11 10:16:31 -07:00
skip-map-discarded.s s12z and h8300 no-print-map-discarded fails 2019-04-19 12:41:58 +09:30
start.d ld-gc tests on underscore targets 2021-03-03 17:46:36 +10:30
start.s ld-gc tests on underscore targets 2021-03-03 17:46:36 +10:30
start2.d ld-gc tests on underscore targets 2021-03-03 17:46:36 +10:30
start2.s ld-gc tests on underscore targets 2021-03-03 17:46:36 +10:30
start3.d --gc-sections with groups and start/stop syms 2021-03-03 17:46:36 +10:30
start3.s --gc-sections with groups and start/stop syms 2021-03-03 17:46:36 +10:30
start4.d --gc-sections with groups and start/stop syms 2021-03-03 17:46:36 +10:30
start4.s --gc-sections with groups and start/stop syms 2021-03-03 17:46:36 +10:30
stop.d ld-gc tests on underscore targets 2021-03-03 17:46:36 +10:30
stop.s Add --gc-sections test checking removal of __start/__stop symbols. 2018-01-30 22:13:43 +10:30