binutils-gdb/ld/testsuite/ld-plugin/pr27311d.c
Alan Modra 7d409ac001 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.
2021-02-04 14:09:51 +10:30

6 lines
86 B
C

__attribute__((visibility("hidden"))) void inlib1(void) {}
int main()
{
return 0;
}