[PATCH] D138174: [lld-macho] Increase slop to prevent thunk out of range again.
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 19:12:06 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGff111a997f1b: [lld-macho] Increase slop to prevent thunk out of range again. (authored by glandium, committed by int3).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138174/new/
https://reviews.llvm.org/D138174
Files:
lld/MachO/ConcatOutputSection.cpp
Index: lld/MachO/ConcatOutputSection.cpp
===================================================================
--- lld/MachO/ConcatOutputSection.cpp
+++ lld/MachO/ConcatOutputSection.cpp
@@ -246,7 +246,7 @@
// contains several branch instructions in succession, then the distance
// from the current position to the position where the thunks are inserted
// grows. So leave room for a bunch of thunks.
- unsigned slop = 256 * thunkSize;
+ unsigned slop = 1024 * thunkSize;
while (finalIdx < endIdx && addr + size + inputs[finalIdx]->getSize() <
isecVA + forwardBranchRange - slop)
finalizeOne(inputs[finalIdx++]);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138174.475986.patch
Type: text/x-patch
Size: 682 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221117/56c1357e/attachment.bin>
More information about the llvm-commits
mailing list