From 97c55606f5a4e88f9ac5466de20b7402d587e8b5 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Mon, 24 Nov 2025 20:12:51 -0600 Subject: [PATCH 1/4] Reserve relocations for the RISC-V Y base ISA. --- riscv-elf.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/riscv-elf.adoc b/riscv-elf.adoc index 8bff34ae..adad3eb6 100644 --- a/riscv-elf.adoc +++ b/riscv-elf.adoc @@ -558,7 +558,9 @@ Description:: Additional information about the relocation <| S - P .2+| 65 .2+| TLSDESC_CALL .2+| Static | .2+| Annotate call to TLS descriptor resolver function, `%tlsdesc_call(address of %tlsdesc_hi)`, for relaxation purposes only <| -.2+| 66-190 .2+| *Reserved* .2+| - | .2+| Reserved for future standard use +.2+| 66-75 .2+| RVY[1-10] .2+| Dynamic | .2+| Reserved for RISCV Y ISA + <| +.2+| 75-190 .2+| *Reserved* .2+| - | .2+| Reserved for future standard use <| .2+| 191 .2+| VENDOR .2+| Static | .2+| Paired with a vendor-specific relocation and must be placed immediately before it, indicates which vendor owns the relocation. <| From 1cec5b5c8e2babe932bddca0ad49f8d0373ae388 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Mon, 24 Nov 2025 20:44:06 -0600 Subject: [PATCH 2/4] Update riscv-elf.adoc Co-authored-by: Jessica Clarke Signed-off-by: Owen Anderson --- riscv-elf.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv-elf.adoc b/riscv-elf.adoc index adad3eb6..a2a6b05f 100644 --- a/riscv-elf.adoc +++ b/riscv-elf.adoc @@ -560,7 +560,7 @@ Description:: Additional information about the relocation <| .2+| 66-75 .2+| RVY[1-10] .2+| Dynamic | .2+| Reserved for RISCV Y ISA <| -.2+| 75-190 .2+| *Reserved* .2+| - | .2+| Reserved for future standard use +.2+| 76-190 .2+| *Reserved* .2+| - | .2+| Reserved for future standard use <| .2+| 191 .2+| VENDOR .2+| Static | .2+| Paired with a vendor-specific relocation and must be placed immediately before it, indicates which vendor owns the relocation. <| From a94f832f35f905924ac4ba48ac17c642c3d7e70c Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Mon, 24 Nov 2025 20:45:04 -0600 Subject: [PATCH 3/4] Update riscv-elf.adoc Co-authored-by: Jessica Clarke Signed-off-by: Owen Anderson --- riscv-elf.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv-elf.adoc b/riscv-elf.adoc index a2a6b05f..d4d59340 100644 --- a/riscv-elf.adoc +++ b/riscv-elf.adoc @@ -558,7 +558,7 @@ Description:: Additional information about the relocation <| S - P .2+| 65 .2+| TLSDESC_CALL .2+| Static | .2+| Annotate call to TLS descriptor resolver function, `%tlsdesc_call(address of %tlsdesc_hi)`, for relaxation purposes only <| -.2+| 66-75 .2+| RVY[1-10] .2+| Dynamic | .2+| Reserved for RISCV Y ISA +.2+| 66-75 .2+| *Reserved* .2+| - | .2+| Reserved for Y base ISA <| .2+| 76-190 .2+| *Reserved* .2+| - | .2+| Reserved for future standard use <| From 8204cae002f2ef0a1e6670cd84c2e0c4baac9880 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 25 Nov 2025 13:07:38 -0600 Subject: [PATCH 4/4] Shift reserved relocs down to keep 66 available for provisional use for CFI. --- riscv-elf.adoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/riscv-elf.adoc b/riscv-elf.adoc index d4d59340..8a48ab07 100644 --- a/riscv-elf.adoc +++ b/riscv-elf.adoc @@ -558,9 +558,11 @@ Description:: Additional information about the relocation <| S - P .2+| 65 .2+| TLSDESC_CALL .2+| Static | .2+| Annotate call to TLS descriptor resolver function, `%tlsdesc_call(address of %tlsdesc_hi)`, for relaxation purposes only <| -.2+| 66-75 .2+| *Reserved* .2+| - | .2+| Reserved for Y base ISA +.2+| 66 .2+| *Reserved* .2+| - | .2+| Reserved for future standard use <| -.2+| 76-190 .2+| *Reserved* .2+| - | .2+| Reserved for future standard use +.2+| 67-76 .2+| *Reserved* .2+| - | .2+| Reserved for Y base ISA + <| +.2+| 77-190 .2+| *Reserved* .2+| - | .2+| Reserved for future standard use <| .2+| 191 .2+| VENDOR .2+| Static | .2+| Paired with a vendor-specific relocation and must be placed immediately before it, indicates which vendor owns the relocation. <|