[PATCH] Don't complain undefined weak dynamic reference
Alan Modra
amodra@gmail.com
Thu Apr 25 23:38:00 GMT 2019
On Thu, Apr 25, 2019 at 02:20:00PM -0700, H.J. Lu wrote:
> When undefined non-weak references in IR objects are optimized out
> by LTO, we can have weak dynamic referencs to symbols marked with
> bfd_link_hash_undefined. We shouldn't complain such undefined weak
> dynamic references.
Looks good to me.
> bfd/
>
> PR ld/24486
> * elflink.c (elf_link_output_extsym): Don't complain undefined
> weak dynamic reference.
>
> ld/
>
> PR ld/24486
> * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
> * testsuite/ld-plugin/pr24486a.c: New file.
> * testsuite/ld-plugin/pr24486b.c: Likewise.
> * testsuite/ld-plugin/pr24486c.c: Likewise.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list