[all-commits] [llvm/llvm-project] 326a9f: [lld][MachO] Key branch-extension thunks on (refer...
Zhaoxuan Jiang via All-commits
all-commits at lists.llvm.org
Wed Apr 15 17:18:09 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 326a9fa5631ebb497c1137d28469186a76f583ed
https://github.com/llvm/llvm-project/commit/326a9fa5631ebb497c1137d28469186a76f583ed
Author: Zhaoxuan Jiang <jiangzhaoxuan94 at gmail.com>
Date: 2026-04-15 (Wed, 15 Apr 2026)
Changed paths:
M lld/MachO/Arch/ARM64.cpp
M lld/MachO/ConcatOutputSection.cpp
M lld/MachO/ConcatOutputSection.h
M lld/MachO/InputSection.cpp
M lld/MachO/InputSection.h
M lld/MachO/Target.h
A lld/test/MachO/arm64-thunk-branch-addend.s
Log Message:
-----------
[lld][MachO] Key branch-extension thunks on (referent, addend) (#191808)
TextOutputSection::finalize ignored branch relocation addends. Two call
sites branching to the same symbol with different addends therefore
collapsed onto a single thunk.
Key thunkMap on (isec, value, addend) so two call sites with different
addends get independent thunks. The addend is encoded in the thunk's
relocs and is zeroed at the call site after the callee is redirected to
the thunk. Thunk names carry a `+N` suffix when the addend is non-zero.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list