diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-03-20 03:51:26 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-03-20 03:51:48 -0700 |
commit | 416c34d683f2a17aefe19afb466af4316c7c603b (patch) | |
tree | 9691a2e890bc0a280025b14bb06678c1ee72e47c /ld/testsuite/ld-plugin/pr22983.d | |
parent | 9d6aac5354566288d7bc734213e5ed0c3cb3c4ca (diff) | |
download | gdb-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/pr22983.d')
-rw-r--r-- | ld/testsuite/ld-plugin/pr22983.d | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/pr22983.d b/ld/testsuite/ld-plugin/pr22983.d new file mode 100644 index 0000000..af1d710 --- /dev/null +++ b/ld/testsuite/ld-plugin/pr22983.d @@ -0,0 +1,9 @@ +Symbol table '\.dynsym' contains [0-9]+ entries: + +Num: +Value +Size Type +Bind +Vis +Ndx Name +#... + +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +OBJECT +GLOBAL +DEFAULT +[0-9]+ +var_attr_used_enabled + +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +OBJECT +GLOBAL +DEFAULT +[0-9]+ +var_attr_used_disabled +#... + +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ +func_attr_used_enabled + +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ +func_attr_used_disabled +#... |