[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 20:49:25 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:
Then it'd be confusing to have R_RISCV_CHERIOT_COMPARTMENT_HI that doesn't say which version it is? Either you have R_RISCV_CHERIOT_COMPARTMENT_HI and R_RISCV_CHERIOTV2_COMPARTMENT_HI, or you have to retroactively rename R_RISCV_CHERIOT_COMPARTMENT_HI to R_RISCV_CHERIOTV1_COMPARTMENT_HI.
https://github.com/llvm/llvm-project/pull/172414
More information about the llvm-commits
mailing list