Question on ld's SORT capability in 2.10
Ian Lance Taylor
ian@zembu.com
Fri Jul 21 08:06:00 GMT 2000
Date: Fri, 21 Jul 2000 09:10:31 -0400
From: Bruce Trull <trull@zko.dec.com>
I doesn't appear that sorting on routine-name is allowed (just
module names). Is that true? Is it a goal to sort on routine-name?
The SORT keyword sorts on section names, not routine names.
It implements C++ constructor priorities, assuming you use the gcc
-finit-priority option to generate constructors in sections with
appropriate names.
In the default script, SORT only applies to .ctors.*, so it should not
affect the section in crtend.o, which is named .ctors.
Ian
More information about the Binutils
mailing list