[lld] [lld][ELF] Sort thunks by their destination to allow quicker convergence (PR #209962)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 19 09:53:31 PDT 2026
================
@@ -4107,7 +4084,46 @@ InputSection *ThunkSection::getTargetInputSection() const {
return t->getTargetInputSection();
}
-bool ThunkSection::assignOffsets() {
+bool ThunkSection::assignOffsets(bool sort) {
+ if (sort) {
+ // For thunk section before sorting:
+ // destA
----------------
MaskRay wrote:
We should list the sections horizontally to use fewer lines
https://github.com/llvm/llvm-project/pull/209962
More information about the llvm-commits
mailing list