[PATCH] ld: Set non_ir_ref_regular on symbols referenced in regular objects
H.J. Lu
hjl.tools@gmail.com
Mon Nov 27 23:45:00 GMT 2017
On Mon, Nov 27, 2017 at 2:57 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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.
>
The updated path to check for badly formatted input files.
--
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: 5377 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20171127/3de08500/attachment.bin>
More information about the Binutils
mailing list