This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] [GOLD] Add plugin API for processing plugin-added input files
- From: Cary Coutant <ccoutant at gmail dot com>
- To: Stephen Crane <sjc at immunant dot com>
- Cc: Binutils <binutils at sourceware dot org>, Sriraman Tallam <tmsriram at google dot com>
- Date: Wed, 20 Sep 2017 14:50:57 -0700
- Subject: Re: [PATCH] [GOLD] Add plugin API for processing plugin-added input files
- Authentication-results: sourceware.org; auth=none
- References: <CAB7K5r7OWeDNXpeb=14W0AjtOgkw416iqY_uuLvRG4sA6nDtwA@mail.gmail.com> <CAB7K5r7b=W2jBF8KEjBwTzJ-BY=seE0jNMm4LHGEPP8qc3zR+g@mail.gmail.com>
> I just wanted to ping this patch and see if this change (or something
> else that allows unique segments in plugin-created objects) can be
> added to the plugin API.
>
> On Thu, Aug 24, 2017 at 10:48 PM, Stephen Crane <sjc@immunant.com> wrote:
>> I have a gold plugin that needs to call the
>> unique_segment_for_sections interface for sections in an input file
>> created by a plugin. Specifically, I want to assign a section created
>> during LTO to a unique output segment with special flags. Here is a
>> patch that allows this use case by adding a callback that gives the
>> plugin the opportunity to get an input handle for plugin-created input
>> files. Could this be added to the gold plugin API? Is there a better
>> way to do this?
This seems reasonable, although I haven't given your patch a good look
yet. Before we put this in gold, though, you should post your proposed
change to the plugin interface (i.e., plugin-api.h) to the gcc-patches
mailing list for review there (please cc me), then be prepared to
update the whopr/driver wiki page on the GCC wiki:
https://gcc.gnu.org/wiki/whopr/driver
The patch to plugin-api.h will need to be applied first on the GCC
tree, then synced back to the binutils tree.
I'd suggest you also cc Sriraman Tallam (cc'ed here). The API
extensions for assigning sections to unique segments are his, so he
may have some useful feedback for you.
-cary