[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
Thu Jul 23 21:57:08 PDT 2026


================
@@ -1669,6 +1669,8 @@ static void readConfigs(Ctx &ctx, opt::InputArgList &args) {
   ctx.arg.zRodynamic = hasZOption(args, "rodynamic");
   ctx.arg.zSeparate = getZSeparate(args);
   ctx.arg.zShstk = hasZOption(args, "shstk");
+  ctx.arg.zSortThunkSection =
----------------
MaskRay wrote:

`sort-thunksection` still feels misleading to me.
If we ever have more global sorting, we could name it `sort-global-thunks`.
Renamed to `sort-thunks` in #211721 

https://github.com/llvm/llvm-project/pull/209962


More information about the llvm-commits mailing list