[PATCH] elf: Skip the archive if the symbol isn't referenced
Alan Modra
amodra@gmail.com
Tue Apr 16 23:28:25 GMT 2024
On Tue, Apr 16, 2024 at 03:48:21PM -0700, H.J. Lu wrote:
> Also skip the archive if the symbol isn't referenced by a regular object.
>
> bfd/
>
> PR ld/31644
> * elflink.c (elf_link_add_archive_symbols): Also skip the archive
> if the symbol isn't referenced by a regular object.
>
> ld/
>
> PR ld/31644
> * testsuite/ld-plugin/lto.exp: Run PR ld/31644 tests.
> * testsuite/ld-plugin/pr31644a.c: New test.
> * testsuite/ld-plugin/pr31644b.c: Likewise.
> * testsuite/ld-plugin/pr31644c.c: Likewise.
OK.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list