This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld with --retain-symbols-file
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Steve Peltz <sep at shout dot net>
- Cc: binutils at sourceware dot org
- Date: Fri, 1 Aug 2008 19:36:17 +0930
- Subject: Re: ld with --retain-symbols-file
- References: <8B0C34CC-F538-4129-8D3C-373CFA121142@shout.net>
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