RFC: Add --sort-section to ld

DJ Delorie dj@redhat.com
Thu Aug 26 18:12:00 GMT 2004


> 3.1. SORT_BY_NAME (SORT_BY_ALIGNMENT (wildcard section pattern)). It
> will sort the input sections by alignment first, then by name if 2
> sections have the same alignment.

I think the semantics here need to be reversed.  If this were a real
programming language, the SORT_BY_NAME would happen last, and override
any previous (inner) sorting.

Thus, these would be equivalent:

SORT_BY_NAME (SORT_BY_ALIGNMENT (*.text))

SORT_BY_NAME (*.text) with -sort-sections=alignment



More information about the Binutils mailing list