diff options
| author | Kees Cook <kees@kernel.org> | 2025-11-21 10:24:34 -0800 |
|---|---|---|
| committer | Andrew Pinski <andrew.pinski@oss.qualcomm.com> | 2025-11-21 19:27:24 -0800 |
| commit | 59a5fecfb260456dd60be687491717f3dbdb354f (patch) | |
| tree | c4c75980f8f94e6c3b53c703e7f313dc72f625ad /libcpp | |
| parent | 9badb670e28dae8c5a98ac3217eb16dfac20d38c (diff) | |
aarch64: Extract aarch64_indirect_branch_asm for sibcall codegen
Extract indirect branch assembly generation into a new function
aarch64_indirect_branch_asm, paralleling the existing
aarch64_indirect_call_asm function. Replace the open-coded versions in
the sibcall patterns (*sibcall_insn and *sibcall_value_insn) so there
is a common helper for indirect branches where things like SLS mitigation
need to be handled.
gcc/ChangeLog:
* config/aarch64/aarch64-protos.h (aarch64_indirect_branch_asm):
Declare.
* config/aarch64/aarch64.cc (aarch64_indirect_branch_asm): New
function to generate indirect branch with SLS barrier.
* config/aarch64/aarch64.md (*sibcall_insn): Use
aarch64_indirect_branch_asm.
(*sibcall_value_insn): Likewise.
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions
