[PATCH] D22749: [ELF] - Linkerscript: Implemented SORT command
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 25 04:55:56 PDT 2016
grimar added inline comments.
================
Comment at: ELF/LinkerScript.cpp:137
@@ +136,3 @@
+ [](InputSectionBase<ELFT> *A, InputSectionBase<ELFT> *B) {
+ return A->getSectionName() < B->getSectionName();
+ });
----------------
evgeny777 wrote:
> grimar wrote:
> > evgeny777 wrote:
> > > What about SORT(*(.data))? How will .data sections be ordered?
> > >
> > >
> > In the same order as linker see them ?
> The should be sorted by file names, I think.
SORT is alias for SORT_BY_NAME.
I do not see anything about sorting by filename in that case.
(https://sourceware.org/binutils/docs/ld/Input-Section-Wildcards.html#Input-Section-Wildcards)
https://reviews.llvm.org/D22749
More information about the llvm-commits
mailing list