aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-01-11 15:36:40 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-01-11 15:36:54 -0800
commitd664fd41e15f058aab41b70c567ad09f2fab1115 (patch)
treea0afc6442dac6e36ef8351cdf17ddcb0d715767c /bfd/ChangeLog
parent71d378ae60a4f072ce392046878d471255f6c8a1 (diff)
downloadgdb-d664fd41e15f058aab41b70c567ad09f2fab1115.zip
gdb-d664fd41e15f058aab41b70c567ad09f2fab1115.tar.gz
gdb-d664fd41e15f058aab41b70c567ad09f2fab1115.tar.bz2
Ignore dynamic references on forced local symbols
We should ignore dynamic references on forced local symbols during garbage collection since they can never be referenced dynamically. bfd/ PR ld/22649 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic references on forced local symbols. ld/ PR ld/22649 * testsuite/ld-elf/pr22649-1.s: New file. * testsuite/ld-elf/pr22649-2a.s: Likewise. * testsuite/ld-elf/pr22649-2b.s: Likewise. * testsuite/ld-elf/pr22649.msg: Likewise. * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 8f2feae..5ceb5a0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
+ PR ld/22649
+ * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
+ references on forced local symbols.
+
+2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
+
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-section.