diff options
author | Alan Modra <amodra@gmail.com> | 2021-02-04 13:56:34 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-02-04 14:09:51 +1030 |
commit | 7d409ac001cce916661d345bff01ed589991e762 (patch) | |
tree | 54fd12705df6bf79810fd58f3fe6ca566891da0d /ld/testsuite/ld-plugin/pr27311d.c | |
parent | e3714e037b711bb5ed794dbfe2064aa4f8ff252c (diff) | |
download | fsf-binutils-gdb-7d409ac001cce916661d345bff01ed589991e762.zip fsf-binutils-gdb-7d409ac001cce916661d345bff01ed589991e762.tar.gz fsf-binutils-gdb-7d409ac001cce916661d345bff01ed589991e762.tar.bz2 |
PR27311, (symbol from plugin): undefined reference, hidden sym
bfd/
PR 27311
* elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
libraries for IR references on pass over libraries after LTO
recompilation.
ld/
* testsuite/ld-plugin/pr27311d.c: New test.
* testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
and link new test as pr27311-2.
Diffstat (limited to 'ld/testsuite/ld-plugin/pr27311d.c')
-rw-r--r-- | ld/testsuite/ld-plugin/pr27311d.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/pr27311d.c b/ld/testsuite/ld-plugin/pr27311d.c new file mode 100644 index 0000000..11e4ba4 --- /dev/null +++ b/ld/testsuite/ld-plugin/pr27311d.c @@ -0,0 +1,5 @@ +__attribute__((visibility("hidden"))) void inlib1(void) {} +int main() +{ + return 0; +} |