Set non_ir_ref_dynamic if a symbol is made dynamic
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 20 Mar 2018 10:51:26 +0000 (03:51 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 20 Mar 2018 10:51:48 +0000 (03:51 -0700)
commit416c34d683f2a17aefe19afb466af4316c7c603b
tree9691a2e890bc0a280025b14bb06678c1ee72e47c
parent9d6aac5354566288d7bc734213e5ed0c3cb3c4ca
Set non_ir_ref_dynamic if a symbol is made dynamic

If a symbol is made dynamic by --dynamic-list, it has non-IR reference.

bfd/

PR ld/22983
* elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.

ld/

PR ld/22983
* testsuite/ld-plugin/lto.exp: Run PR ld/22983 test.
* testsuite/ld-plugin/pr22983.d: New file.
* testsuite/ld-plugin/pr22983.t: Likewise.
* testsuite/ld-plugin/pr22983a.c: Likewise.
* testsuite/ld-plugin/pr22983b.c: Likewise.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-plugin/lto.exp
ld/testsuite/ld-plugin/pr22983.d [new file with mode: 0644]
ld/testsuite/ld-plugin/pr22983.t [new file with mode: 0644]
ld/testsuite/ld-plugin/pr22983a.c [new file with mode: 0644]
ld/testsuite/ld-plugin/pr22983b.c [new file with mode: 0644]