PR27311, (symbol from plugin): undefined reference, hidden sym
authorAlan Modra <amodra@gmail.com>
Thu, 4 Feb 2021 03:26:34 +0000 (13:56 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 4 Feb 2021 03:39:51 +0000 (14:09 +1030)
commit7d409ac001cce916661d345bff01ed589991e762
tree54fd12705df6bf79810fd58f3fe6ca566891da0d
parente3714e037b711bb5ed794dbfe2064aa4f8ff252c
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.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-plugin/lto.exp
ld/testsuite/ld-plugin/pr27311d.c [new file with mode: 0644]