[all-commits] [llvm/llvm-project] 8198f3: [lld-macho] Account for alignment in thunk inserti...
Jez Ng via All-commits
all-commits at lists.llvm.org
Tue Feb 14 11:35:09 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8198f30f7e756e3368c3eda62ecc3d0cc62d1570
https://github.com/llvm/llvm-project/commit/8198f30f7e756e3368c3eda62ecc3d0cc62d1570
Author: Jez Ng <jezng at fb.com>
Date: 2023-02-14 (Tue, 14 Feb 2023)
Changed paths:
M lld/MachO/ConcatOutputSection.cpp
A lld/test/MachO/arm64-thunk-for-alignment.s
Log Message:
-----------
[lld-macho] Account for alignment in thunk insertion algorithm
We previously neglected this, leading us to underestimate the maximum
possible branch address offset.
Fixing this should allow us to reduce `slop` to more reasonable
levels. I've lowered it to 256 for now, though I suspect we could go
lower.
Fixes https://github.com/llvm/llvm-project/issues/59259.
Reviewed By: serge-sans-paille
Differential Revision: https://reviews.llvm.org/D144029
More information about the All-commits
mailing list