diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-01-11 09:42:12 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-01-11 09:42:12 -0800 |
commit | 8b6f4cd34fdde524ea035c65f7d48aaa3fb449b5 (patch) | |
tree | f2792cd8a1968d5db78c810fa7ae93874055f367 /ld/ChangeLog | |
parent | 65f14869fd3fbee8ed4c4ca49de8aaa86dbc66cb (diff) | |
download | gdb-8b6f4cd34fdde524ea035c65f7d48aaa3fb449b5.zip gdb-8b6f4cd34fdde524ea035c65f7d48aaa3fb449b5.tar.gz gdb-8b6f4cd34fdde524ea035c65f7d48aaa3fb449b5.tar.bz2 |
ld: Keep PREINIT_ARRAY/INIT_ARRAY/FINI_ARRAY sections for -r --gc-sections
We must keep all PREINIT_ARRAY, INIT_ARRAY as well as FINI_ARRAY sections
for ld -r --gc-sections.
bfd/
PR ld/22677
* elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-sections.
ld/
PR ld/22677
* scripttempl/elf.sc (PREINIT_ARRAY): New.
Don't add .preinit_array for ld -r.
* testsuite/ld-elf/pr22677.d: New file.
* testsuite/ld-elf/pr22677.s: Likewise.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r-- | ld/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 83545d5..34fdb1f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2018-01-11 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/22677 + * scripttempl/elf.sc (PREINIT_ARRAY): New. + Don't add .preinit_array for ld -r. + * testsuite/ld-elf/pr22677.d: New file. + * testsuite/ld-elf/pr22677.s: Likewise. + 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com> * ldexp.h (union etree_union): Remove defsym field. |