RFC: Support link with mixed IR/non-IR objects
Ian Lance Taylor
iant@google.com
Wed May 9 14:02:00 GMT 2012
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.
Ian
More information about the Binutils
mailing list