[PATCH 0/2] PR ld/17878: Merge linker plugin handling into BFD plugin support
H.J. Lu
hjl.tools@gmail.com
Wed Feb 11 12:55:00 GMT 2015
On Mon, Feb 9, 2015 at 4:17 PM, Alan Modra <amodra@gmail.com> wrote:
> On Mon, Feb 09, 2015 at 05:00:58AM -0800, H.J. Lu wrote:
>> Hi,
>>
>> This series merge linker plugin handling into BFD plugin support.
>>
>> Linker plugin_maybe_claim is the interface of linker plugin support.
>> This patch extracts linker plugin_maybe_claim into plugin_object_p and
>> makes it available to BFD via a new function:
>>
>> void register_ld_plugin_object_p (const bfd_target *(*) (bfd *));
>>
>> bfd_plugin_object_p calls plugin_object_p first registered by linker. It
>> adds an enum bfd_plugin_format field and a pointer to plugin dummy BFD so
>> that plugin_object_p stores plugin dummy BFD to allow plugin_maybe_claim
>> to retrieve it later.
>>
>> Tests are added to verify if nm, ar and ld can properly handle LTO IR
>> stored in plain text file.
>
> Thanks, this looks like a move in the right direction to me.
>
Great. I will check in my changes. I will fix any issues they may cause.
Thanks.
--
H.J.
More information about the Binutils
mailing list