[PATCH] D108897: [lld/mac] Set branchRange a bit more carefully
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 29 12:29:04 PDT 2021
thakis added inline comments.
================
Comment at: lld/MachO/ConcatOutputSection.cpp:258
uint64_t lowVA = branchRange < callVA ? callVA - branchRange : 0;
- uint64_t highVA = callVA + branchRange;
+ uint64_t highVA = callVA + branchRange - 4;
// Calculate our call referent address
----------------
(See also `AArch64::inBranchRange` in lld/ELF/Arch/AArch64.cpp)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108897/new/
https://reviews.llvm.org/D108897
More information about the llvm-commits
mailing list