RFC: Add --sort-section to ld

Ian Lance Taylor ian@wasabisystems.com
Thu Aug 26 00:51:00 GMT 2004


"H. J. Lu" <hjl@lucon.org> writes:

> We'd like to have a way to apply SORT to all wildcard sections in the
> default linker scripts. I am thinking to add a new linker switch,
> --sort-section, which sorts all wildcard sections. It will be ignored
> when a user provided linker script is used. Any comments?

Why should --sort-section be ignored with a user provided linker
script?

If we add this, I think it should take a parameter, so that we can
specify the type of sort to use.  For example: sort by name, sort by
section size.

Ian



More information about the Binutils mailing list