ld with --retain-symbols-file
Alan Modra
amodra@bigpond.net.au
Fri Aug 1 10:06:00 GMT 2008
On Thu, Jul 31, 2008 at 05:17:45AM -0500, Steve Peltz wrote:
> If I have two sets of .o files, and I want to partial-link each set,
> resolving all symbols and only keeping the ones I'm going to
> reference, it seems I generally can not do that if any of those
> symbols are referenced within their set (or even just within the same
> file).
That's right. ld -r doesn't resolve. If you want it to do that for
you, you have some linker code to write..
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list