[llvm] [ELF/RISCV] Add definitions for XCHERIOT1 non-standard relocations on RISCV. (PR #172414)
Jessica Clarke via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 15 21:12:24 PST 2025
================
@@ -30,3 +30,9 @@ ELF_RISCV_NONSTANDARD_RELOC(QUALCOMM, R_RISCV_QC_E_CALL_PLT, 195)
// Andes Nonstandard Relocations
// Calculation: S + A - P (10-bit PC-relative branch offset)
ELF_RISCV_NONSTANDARD_RELOC(ANDES, R_RISCV_NDS_BRANCH_10, 241)
+
+// CHERIoT Nonstandard Relocations
+ELF_RISCV_NONSTANDARD_RELOC(XCHERIOT1, R_RISCV_CHERIOT_COMPARTMENT_HI, 220)
----------------
jrtc27 wrote:
It's not an ABI requirement as they're just numbers in the ABI, but yes this does seem like an oversight in the toolchain conventions document.
https://github.com/llvm/llvm-project/pull/172414
More information about the llvm-commits
mailing list