[all-commits] [llvm/llvm-project] a36ad2: [AArch64] Fix the emission of WinCFI for pac-ret+l...
Anatoly Trosinenko via All-commits
all-commits at lists.llvm.org
Wed Jul 9 09:07:18 PDT 2025
Branch: refs/heads/users/atrosinenko/pauth-wincfi-fixes
Home: https://github.com/llvm/llvm-project
Commit: a36ad2933e054baa0331509169b2dc6e39e39707
https://github.com/llvm/llvm-project/commit/a36ad2933e054baa0331509169b2dc6e39e39707
Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
Date: 2025-07-09 (Wed, 09 Jul 2025)
Changed paths:
M llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
M llvm/test/CodeGen/AArch64/sign-return-address.ll
Log Message:
-----------
[AArch64] Fix the emission of WinCFI for pac-ret+leaf and SCS
This commit fixes WinCFI opcodes being incorrectly emitted for test
cases in sign-return-address.ll.
Emit SEH_Nop opcode in emitShadowCallStackEpilogue the same way it
is done in emitShadowCallStackPrologue function - this fixes
12 bytes of instructions in range, but .seh directives corresponding to 8 bytes
error being reported for the epilogue of non_leaf_scs function.
Emit SEH_PrologEnd on the code path in emitPrologue function that may be
taken when pac-ret protection is emitted for a leaf function - this
fixes errors like the following:
starting epilogue (.seh_startepilogue) before prologue has ended (.seh_endprologue) in leaf_sign_all_v83
Stray .seh_endepilogue in leaf_sign_all_v83
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