Section garbage collection problem

Denys Vlasenko vda.linux@googlemail.com
Wed Sep 19 20:34:00 GMT 2007


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



More information about the Binutils mailing list