diff options
| author | Sami Tolvanen <[email protected]> | 2023-09-27 22:48:01 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2023-10-27 21:43:07 +0000 |
| commit | e609b4f4252a2ad2454736078693571b9fbff019 (patch) | |
| tree | 3d7a377db07e312efe5275e80d9119b84a1b7b99 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | riscv: Deduplicate IRQ stack switching (diff) | |
| download | kernel-e609b4f4252a2ad2454736078693571b9fbff019.tar.gz kernel-e609b4f4252a2ad2454736078693571b9fbff019.zip | |
riscv: Move global pointer loading to a macro
In Clang 17, -fsanitize=shadow-call-stack uses the newly declared
platform register gp for storing shadow call stack pointers. As
this is obviously incompatible with gp relaxation, in preparation
for CONFIG_SHADOW_CALL_STACK support, move global pointer loading
to a single macro, which we can cleanly disable when SCS is used
instead.
Link: https://reviews.llvm.org/rGaa1d2693c256
Link: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/commit/a484e843e6eeb51f0cb7b8819e50da6d2444d769
Signed-off-by: Sami Tolvanen <[email protected]>
Tested-by: Nathan Chancellor <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
