mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
[lld-macho] Increase slops to prevent thunk out of range
One of our internal arm64 apps hit a thunk out of range error when building with LLD. Per the comment, I'm arbitrarily increasing slop size to 256. Reviewed By: #lld-macho, thakis Differential Revision: https://reviews.llvm.org/D116705
This commit is contained in:
@@ -244,7 +244,7 @@ void ConcatOutputSection::finalize() {
|
||||
// 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 = 100 * thunkSize;
|
||||
unsigned slop = 256 * thunkSize;
|
||||
while (finalIdx < endIdx && isecAddr + inputs[finalIdx]->getSize() <
|
||||
isecVA + forwardBranchRange - slop)
|
||||
finalizeOne(inputs[finalIdx++]);
|
||||
|
||||
Reference in New Issue
Block a user