This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Add --sort-section to ld


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]