Add arm64 bti pads for range extension thunks.
authortobhe <tobhe@openbsd.org>
Sun, 26 Nov 2023 22:18:45 +0000 (22:18 +0000)
committertobhe <tobhe@openbsd.org>
Sun, 26 Nov 2023 22:18:45 +0000 (22:18 +0000)
commitb1fea01f887da629bb662762d360f74e5a3b618b
treec56f74779b4b94f9da18b75cf080352eb25745fd
parent2551e57700ef82f09b79a4650658ab9154aae591
Add arm64 bti pads for range extension thunks.

Large arm64 binaries like chromium use range extension thunks
for accessing plt entries. Add bti landing pads for the
additional indirection.

upstream commit: 60827df765156cee6cca3dc5049388dde9dac1c0

ok kettenis@
gnu/llvm/lld/ELF/Arch/AArch64.cpp
gnu/llvm/lld/ELF/Symbols.cpp
gnu/llvm/lld/ELF/Symbols.h
gnu/llvm/lld/ELF/Thunks.cpp