[PATCH 0/2] PR ld/17878: Merge linker plugin handling into BFD plugin support
Alan Modra
amodra@gmail.com
Tue Feb 10 00:17:00 GMT 2015
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.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list