[PATCH] ld: Set non_ir_ref_regular on symbols referenced in regular objects

H.J. Lu hjl.tools@gmail.com
Mon Nov 27 22:57:00 GMT 2017


On Mon, Nov 27, 2017 at 11:29 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> If check_relocs is called after opening all inputs and the new defitinion
> from an IR object overrides the old weak defitinion in a regular object,
> set non_ir_ref_regular so that linker plugin will get the correct symbol
> resolution.
>
> OK for master?
>
>
> H.J.
> ---
> bfd/
>
>         PR ld/22502
>         * elflink.c (_bfd_elf_merge_symbol): Also skip definition from
>         an IR object.
>         * linker.c (_bfd_generic_link_add_one_symbol): If check_relocs
>         is called after opening all inputs, set non_ir_ref_regular.
>

Here is a better patch.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ld-Set-non_ir_ref_regular-on-symbols-referenced-in-r.patch
Type: text/x-patch
Size: 5323 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20171127/28c8c729/attachment.bin>


More information about the Binutils mailing list