[PATCH] D146463: [CodeGen][RISCV] Change Shadow Call Stack Register to X3
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 29 17:41:17 PDT 2023
craig.topper added a comment.
In D146463#4232221 <https://reviews.llvm.org/D146463#4232221>, @mcgrathr wrote:
> In D146463#4232214 <https://reviews.llvm.org/D146463#4232214>, @craig.topper wrote:
>
>> Does the kernel populate the initial value of the register for the shadow stack or is that done by a runtime inside the application?
>
> This is a change to code generation and is orthogonal to how the runtime environment supports the ABI requirement. The details depend on the particular runtime environment, which is not the province of the compiler backend.
I ask because GP is set in crtbegin.o on Linux today. So if its the kernel that populates it, then GP isn't valid choice for Linux without changing crtbegin.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146463/new/
https://reviews.llvm.org/D146463
More information about the cfe-commits
mailing list