ld -r frustration

Jason Thorpe thorpej@wasabisystems.com
Tue Jul 27 22:36:00 GMT 2004

On Jul 27, 2004, at 8:11 AM, Alan Modra wrote:

> That's not the ideal solution, especially considering that tools
> like libtool use "ld -r" to work around command line limits when
> linking huge numbers of object files.  What we really need is a
> "ld -r" that doesn't do any merging of sections, or a final link
> stage that can undo the effects of "ld -r".  The latter would need
> quite a bit of work, and probably not be very robust.  I'm leaning
> towards the idea of making "ld -r" behave like "ar cr" on PowerPC64.

I'd be really bummed out by this.  I have an application where I 
specifically use ld -r to merge sections from multiple .o files into a 
single .o file in order to form a table in a .a library.

This application does not currently run on PowerPC64, but there are 
plans to make it so do.

         -- Jason R. Thorpe <thorpej@wasabisystems.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <https://sourceware.org/pipermail/binutils/attachments/20040727/ca843f06/attachment.sig>

More information about the Binutils mailing list