aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-03-03 12:14:55 +1030
committerAlan Modra <amodra@gmail.com>2021-03-03 17:46:36 +1030
commit5789f845fbf67d271e0f5ff154eb03319b551211 (patch)
treed1cf1f67c603d4d4eb3ef237d7054fb351eeedbe /ld/ChangeLog
parent270f32fc50b465e84c214a17d4ad3aebc3161bae (diff)
downloadgdb-5789f845fbf67d271e0f5ff154eb03319b551211.zip
gdb-5789f845fbf67d271e0f5ff154eb03319b551211.tar.gz
gdb-5789f845fbf67d271e0f5ff154eb03319b551211.tar.bz2
--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.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r--ld/ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index bf1d226..0f1da7f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,17 @@
2021-03-03 Alan Modra <amodra@gmail.com>
+ PR 27500
+ * 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 Alan Modra <amodra@gmail.com>
+
* testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
Move tests with ELF section directives to is_elf_format block.
* testsuite/ld-gc/abi-note.d: Run on more targets.