[PATCH] D22749: [ELF] - Linkerscript: Implemented SORT command

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 06:37:41 PDT 2016


evgeny777 added inline comments.

================
Comment at: ELF/LinkerScript.cpp:139
@@ +138,3 @@
+                return A->getSectionName() < B->getSectionName();
+              return compareFileNames(A->getFile(), B->getFile());
+            });
----------------
What exact sorting order should be used? Shouldn't file name have greater priority than section name?

Also how about this one:
```
*(SORT(*.data.*))
```
vs this one:
```
SORT(*)(*.data.*)
```


https://reviews.llvm.org/D22749





More information about the llvm-commits mailing list