aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/lto.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-03-20 03:51:26 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-03-20 03:51:48 -0700
commit416c34d683f2a17aefe19afb466af4316c7c603b (patch)
tree9691a2e890bc0a280025b14bb06678c1ee72e47c /ld/testsuite/ld-plugin/lto.exp
parent9d6aac5354566288d7bc734213e5ed0c3cb3c4ca (diff)
downloadgdb-416c34d683f2a17aefe19afb466af4316c7c603b.zip
gdb-416c34d683f2a17aefe19afb466af4316c7c603b.tar.gz
gdb-416c34d683f2a17aefe19afb466af4316c7c603b.tar.bz2
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.
Diffstat (limited to 'ld/testsuite/ld-plugin/lto.exp')
-rw-r--r--ld/testsuite/ld-plugin/lto.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
index 7300f48..19aec3f 100644
--- a/ld/testsuite/ld-plugin/lto.exp
+++ b/ld/testsuite/ld-plugin/lto.exp
@@ -573,6 +573,16 @@ run_ld_link_exec_tests $lto_run_tests
if { [is_elf_format] } {
run_ld_link_exec_tests $lto_run_elf_tests
+ run_cc_link_tests [list \
+ [list \
+ "Build pr22983" \
+ "-Wl,--dynamic-list,pr22983.t" \
+ "-flto" \
+ {pr22983a.c pr22983b.c} \
+ {{readelf {--dyn-syms --wide} pr22983.d}} \
+ "pr22983" \
+ ] \
+ ]
}
if { [is_elf_format] && [check_lto_shared_available] } {