[PATCH] D84414: [RISCV] Support Shadow Call Stack

Z. Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 07:47:32 PDT 2020


zzheng created this revision.
zzheng added reviewers: apazos, lenary, asb.
Herald added subscribers: cfe-commits, aaron.ballman, evandro, luismarques, sameer.abuasal, pzheng, s.egerton, Jim, benna, psnobl, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, MaskRay, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, kristof.beyls.
Herald added projects: clang, LLVM.

Currenlty mimics AArch64's implementation. Assume x18 is used as pointer to
shadow call stack. User shall pass flags:

  "-fsanitize=shadow-call-stack -ffixed-x18"

Runtime supported is needed to setup x18.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84414

Files:
  clang/lib/Driver/SanitizerArgs.cpp
  clang/lib/Driver/ToolChain.cpp
  clang/test/CodeGen/shadowcallstack-attr.c
  clang/test/Driver/sanitizer-ld.c
  llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
  llvm/test/CodeGen/RISCV/shadowcallstack.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84414.280117.patch
Type: text/x-patch
Size: 10433 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200723/bbcef160/attachment.bin>


More information about the llvm-commits mailing list