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: linker plugin api limitation


On Mon, Feb 22, 2016 at 8:20 AM, Rafael EspÃndola
<rafael.espindola@gmail.com> wrote:
> On 22 February 2016 at 11:14, H.J. Lu <hjl.tools@gmail.com> wrote:
>> On Mon, Feb 22, 2016 at 6:39 AM, Rafael EspÃndola
>> <rafael.espindola@gmail.com> wrote:
>>> Hi,
>>>
>>> Evgeniy Stepanov recently found a limitation of the plugin api with
>>> --start-lib --end-lib: there is no way to tell the difference from a
>>> file not being included in the link to it being included and all the
>>> symbols being preempted.
>>
>> How should --start-lib --end-lib work? Is there an equivalent command
>> line option for BFD ld?
>
> I don't think it is implemented in BFD ld. The idea is that using
>
> $ ld ... --start-lib <objs> --end-lib
>
> should be equivalent to
> $ ar rc foo.a <objs>
> $ ld ... foo.a
>
> ar is normally very fast, but when doing a fully distributed build one
> would still need to copy <objs> to a node just to create foo.a. Using
> --start-lib/--end-lib saves that step.
>

Have you tried the AR equivalent with gold?


-- 
H.J.


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