This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: RFC: Add --sort-section to ld
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: 25 Aug 2004 20:51:09 -0400
- Subject: Re: RFC: Add --sort-section to ld
- References: <20040825210758.GA14687@lucon.org>
"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