This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Section garbage collection problem
- From: Denys Vlasenko <vda dot linux at googlemail dot com>
- To: Michael Hennebry <hennebry at web dot cs dot ndsu dot nodak dot edu>
- Cc: binutils at sourceware dot org, "H.J. Lu" <hjl at lucon dot org>, Alan Modra <amodra at bigpond dot net dot au>
- Date: Wed, 19 Sep 2007 21:05:13 +0100
- Subject: Re: Section garbage collection problem
- References: <20070916141605.I5028-100000@web.cs.ndsu.nodak.edu>
Hi,
On Sunday 16 September 2007 20:20, Michael Hennebry wrote:
> Would a two-step link work?
> The first step lets ld gc what it wants.
> The second step links the output of the first with the
> lock section and lives with the unresolved references.
I don't understand you fully, sorry...
NB: ld -r and --gc-sections don't mix. Thus first link
in two-stage link should not use -r then.
I am not sure how to use the result of
"ld --gc-sections without -r" in the second stage.
--
vda