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: RFC: Support link with mixed IR/non-IR objects


On May 9, 2012, at 4:02 PM, Ian Lance Taylor wrote:

> Tristan Gingold <gingold@adacore.com> writes:
> 
>> On May 8, 2012, at 10:05 PM, Andi Kleen wrote:
>> 
>>> 
>>>> Even so, I think I'd lean towards the use of archives.
>>> 
>>> ar archives don't work. The linux kernel requires unreferenced objects to
>>> be included in the build (e.g. for EXPORT_SYMBOL and initcalls)
>> 
>> Many linkers (but not GNU ld) have options to link all archive members.  Not difficult to implement.
> 
> Unless I misunderstand what you mean, GNU ld has that option too:
> --whole-archive.

Ah yes, I missed it when I searched in --help.  Thank you for correcting me.

Tristan.


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