Fuchsia's ABI always reserves the x18 (s2) register for the
ShadowCallStack ABI, even when -fsanitize=shadow-call-stack is
not enabled.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D143355
[RISCV] Default to -ffixed-x18 for Fuchsia ClosedPublic Authored by mcgrathr on Feb 5 2023, 3:19 PM.
Details Summary Fuchsia's ABI always reserves the x18 (s2) register for the
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 5 2023, 3:19 PM Herald added subscribers: llvm-commits, cfe-commits, • pcwang-thead and 2 others. · View Herald Transcript mcgrathr added a parent revision: D143353: [RISCV] Use OS-specific stack-guard ABI for Fuchsia.Feb 5 2023, 3:20 PM mcgrathr added a child revision: D143357: [RISCV] Default to -fsanitize=shadow-call-stack for Fuchsia.Feb 5 2023, 3:23 PM This revision is now accepted and ready to land.Feb 5 2023, 4:03 PM
This revision was landed with ongoing or failed builds.Feb 5 2023, 6:51 PM Closed by commit rG03ff435da540: [RISCV] Default to -ffixed-x18 for Fuchsia (authored by mcgrathr). · Explain Why This revision was automatically updated to reflect the committed changes. mcgrathr mentioned this in D143360: [RISCV] Clean up stack-protector-target test.Feb 5 2023, 7:08 PM hiraditya mentioned this in D145999: [RISCV] Reserve X18 by default for Android.Mar 13 2023, 4:03 PM
Revision Contents
Diff 494975 clang/lib/Driver/SanitizerArgs.cpp
clang/test/Driver/sanitizer-ld.c
llvm/include/llvm/TargetParser/RISCVTargetParser.h
llvm/lib/Target/RISCV/RISCVSubtarget.cpp
llvm/lib/TargetParser/RISCVTargetParser.cpp
llvm/test/CodeGen/RISCV/reserved-regs.ll
|
Unrelated change