[PATCH] D116705: [lld-macho] Increase slops to prevent thunk out of range

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 5 17:36:04 PST 2022


oontvoo added inline comments.


================
Comment at: lld/MachO/ConcatOutputSection.cpp:247
     // grows. So leave room for a bunch of thunks.
-    unsigned slop = 100 * thunkSize;
+    unsigned slop = 200 * thunkSize;
     while (finalIdx < endIdx && isecAddr + inputs[finalIdx]->getSize() <
----------------
Where is this number from?
(would have asked the same question for '100').

Is this just kicking the can down the road?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116705/new/

https://reviews.llvm.org/D116705



More information about the llvm-commits mailing list