This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR ld/20103: Skip an archive element if not added by linker


On Tue, May 17, 2016 at 07:24:08PM -0700, H.J. Lu wrote:
> During archive rescan to resolve symbol references for files added by
> LTO, linker add_archive_element callback is called to check if an
> archive element should added.  After all IR symbols have been claimed,
> linker won't claim new IR symbols and shouldn't add the LTO archive
> element.  This patch updates linker add_archive_element callback to
> return FALSE when seeing an LTO archive element during rescan and
> changes ELF linker to skip such archive element.  Other linker backends
> may also need similar update.
> 
> Tested on x86.  OK for master?

Not without a lot more explanation and justification why this is
correct, in particular the plugin_call_claim_file change.

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]