How to stop --gc-sections nukeing all sections?

Richard Henderson rth@cygnus.com
Mon Apr 17 17:44:00 GMT 2000


On Mon, Apr 17, 2000 at 05:25:48PM -0700, Ian Lance Taylor wrote:
> But the GNU linker doesn't preserve link order of sections.

Yes it does.  Section foo from a.o and b.o are placed in the
order that the two object files appeared on the link line.

> Bear in mind that we are only talking about sections which do not
> appear in the linker script.

Bear in mind that I'm not talking about sections with different
names, but the placement of all sections with the same name.



r~


More information about the Binutils mailing list