[lld] [lld][ELF] Sort thunks by their destination to allow quicker convergence (PR #209962)

Pranav Kant via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 10:09:12 PDT 2026


================
@@ -1235,7 +1225,7 @@ class ThunkSection final : public SyntheticSection {
   size_t getSize() const override;
   void writeTo(uint8_t *buf) override;
   InputSection *getTargetInputSection() const;
-  bool assignOffsets();
+  bool assignOffsets(bool sort = false);
----------------
pranavk wrote:

`assignOffset` is also called for other types of thunks -- prefix thunks where we do not want any sorting. 

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


More information about the llvm-commits mailing list