Ignore dynamic references on forced local symbols
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 11 Jan 2018 23:36:40 +0000 (15:36 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 11 Jan 2018 23:36:54 +0000 (15:36 -0800)
commitd664fd41e15f058aab41b70c567ad09f2fab1115
treea0afc6442dac6e36ef8351cdf17ddcb0d715767c
parent71d378ae60a4f072ce392046878d471255f6c8a1
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.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-elf/pr22649-1.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr22649-2a.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr22649-2b.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr22649.msg [new file with mode: 0644]
ld/testsuite/ld-elf/shared.exp
This page took 0.036073 seconds and 4 git commands to generate.