linker plugin api limitation

H.J. Lu hjl.tools@gmail.com
Mon Feb 22 18:33:00 GMT 2016
On Mon, Feb 22, 2016 at 10:28 AM, Evgenii Stepanov
<eugeni.stepanov@gmail.com> wrote:
>
> On Feb 22, 2016 10:26 AM, "Rafael EspĂ­ndola" <rafael.espindola@gmail.com>
> wrote:
>>
>> > The plugin API does support it as shown by
>> >
>> > ar rc foo.a <objs>
>> > gold ... foo.a
>> >
>> > Gold just fails to handle it properly.
>>
>> Sorry, but how?
>>
>> With --start-lib --end-lib gold has to ask the plugin for the symbols,
>> and, as far as I can, tell has no way to signal the plugin that that
>> file should not be included in the link.
>
> Exactly. With AR the plugin never sees the library objects. The seems to be
> no way of knowing that an object should be dropped later.
>

So you want to ask plugin what symbols are defined in an IR
file without symbol resolution, similar to AR?


-- 
H.J.



More information about the Binutils mailing list