[PATCH] D135276: [AArch64] Add support for the SEH opcode for return address signing

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 5 08:45:34 PDT 2022


mstorsjo created this revision.
mstorsjo added reviewers: efriedma, zzheng, sdesmalen.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a project: LLVM.

See https://github.com/MicrosoftDocs/cpp-docs/pull/4202 for
progress on trying to get it documented upstream.

The external facing assembler directive ".seh_sign_ra" should be
considered experimental until proper naming for the opcode has been
settled upstream.

This opcode can be expressed in packed unwind too, but I'm not
implementing that packing until documentation for these cases have
settled.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135276

Files:
  llvm/include/llvm/Support/Win64EH.h
  llvm/lib/MC/MCWin64EH.cpp
  llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
  llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
  llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
  llvm/lib/Target/AArch64/MCTargetDesc/AArch64WinCOFFStreamer.cpp
  llvm/test/MC/AArch64/seh.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135276.465419.patch
Type: text/x-patch
Size: 6467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221005/4fbe11db/attachment.bin>


More information about the llvm-commits mailing list