This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] ld: Set non_ir_ref_regular on symbols referenced in regular objects
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 28 Nov 2017 21:23:59 +1030
- Subject: Re: [PATCH] ld: Set non_ir_ref_regular on symbols referenced in regular objects
- Authentication-results: sourceware.org; auth=none
- References: <CAMe9rOqAyUKaPiZWejzPwiYd3-400E2fMJbndyWC0NVBCXbhug@mail.gmail.com> <CAMe9rOpuGj9=fLaPMBa635qb9i4V+Cayag7jOQGZHN9S67GhYw@mail.gmail.com>
On Mon, Nov 27, 2017 at 03:45:12PM -0800, H.J. Lu wrote:
> If linker plugin is enabled, set non_ir_ref_regular on symbols referenced
> in regular objects so that linker plugin will get the correct symbol
> resolution.
>
> bfd/
>
> PR ld/22502
> * elflink.c (_bfd_elf_merge_symbol): Also skip definition from
> an IR object.
> (elf_link_add_object_symbols): If linker plugin is enabled, set
> non_ir_ref_regular on symbols referenced in regular objects so
> that linker plugin will get the correct symbol resolution.
>
> ld/
>
> PR ld/22502
> * testsuite/ld-plugin/lto.exp: Run PR ld/22502 test.
> * testsuite/ld-plugin/pr22502a.c: New file.
> * testsuite/ld-plugin/pr22502b.c: Likewise.
OK.
--
Alan Modra
Australia Development Lab, IBM