llvm-project/llvm/lib/Target/RISCV/Utils
Zhaoshi Zheng 1c466477ad [RISCV] Support Shadow Call Stack
Currenlty 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.

If SCS is desired, all parts of the program should be built with -ffixed-x18 to
maintain inter-operatability.

There's no particuluar reason that we must use x18 as SCS pointer. Any register
may be used, as long as it does not have designated purpose already, like RA or
passing call arguments.

Differential Revision: https://reviews.llvm.org/D84414
2020-09-17 16:02:35 -07:00
..
CMakeLists.txt [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
LLVMBuild.txt
RISCVBaseInfo.cpp [RISCV] Support Shadow Call Stack 2020-09-17 16:02:35 -07:00
RISCVBaseInfo.h [RISCV] Support Shadow Call Stack 2020-09-17 16:02:35 -07:00
RISCVMatInt.cpp RISCVMatInt.h - remove unnecessary includes. NFCI. 2020-09-08 18:25:24 +01:00
RISCVMatInt.h RISCVMatInt.h - remove unnecessary includes. NFCI. 2020-09-08 18:25:24 +01:00