[PATCH] D145205: [codegen][riscv] Emit CFI directives when using shadow call stack

Paul Kirth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 2 16:29:19 PST 2023


paulkirth created this revision.
paulkirth added a reviewer: mcgrathr.
Herald added subscribers: luke, VincentWu, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
paulkirth requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

Currently we don't emit any CFI instructions for the SCS register when
enabling SCS on RISCV. This causes problems when unwinding, since the
SCS register isn't being handled properly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145205

Files:
  llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
  llvm/test/CodeGen/RISCV/shadowcallstack.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145205.502024.patch
Type: text/x-patch
Size: 3748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230303/f95562c9/attachment.bin>


More information about the llvm-commits mailing list