RFC: Support link with mixed IR/non-IR objects

Andi Kleen ak@linux.intel.com
Wed May 9 23:48:00 GMT 2012


On Wed, May 09, 2012 at 03:05:58PM +0200, Tristan Gingold wrote:
> 
> 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.

We cannot force all the Linux users to update their binutils.
So would need a solution that works with old binutils.

Do you have one?

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only



More information about the Binutils mailing list