Skip to content

Commit 007a368

Browse files
committed
Remove note for GNU extension behavior for R_RISCV_PCREL_LO12_[I|S]
1 parent de76c95 commit 007a368

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

riscv-elf.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,8 @@ Enum | ELF Reloc Type | Description | Field | C
548548
21 | R_RISCV_TLS_GOT_HI20 | PC-relative TLS IE GOT offset | _U-Type_ | | Macro `la.tls.ie`
549549
22 | R_RISCV_TLS_GD_HI20 | PC-relative TLS GD reference | _U-Type_ | | Macro `la.tls.gd`
550550
23 | R_RISCV_PCREL_HI20 | PC-relative reference | _U-Type_ | S + A - P | `%pcrel_hi(symbol)`
551-
24 | R_RISCV_PCREL_LO12_I | PC-relative reference | _I-type_ | S - P | `%pcrel_lo(address of %pcrel_hi)`, the addend must be 0 (*note 1)
552-
25 | R_RISCV_PCREL_LO12_S | PC-relative reference | _S-Type_ | S - P | `%pcrel_lo(address of %pcrel_hi)`, the addend must be 0 (*note 1)
551+
24 | R_RISCV_PCREL_LO12_I | PC-relative reference | _I-type_ | S - P | `%pcrel_lo(address of %pcrel_hi)`, the addend must be 0
552+
25 | R_RISCV_PCREL_LO12_S | PC-relative reference | _S-Type_ | S - P | `%pcrel_lo(address of %pcrel_hi)`, the addend must be 0
553553
26 | R_RISCV_HI20 | Absolute address | _U-Type_ | S + A | `%hi(symbol)`
554554
27 | R_RISCV_LO12_I | Absolute address | _I-Type_ | S + A | `%lo(symbol)`
555555
28 | R_RISCV_LO12_S | Absolute address | _S-Type_ | S + A | `%lo(symbol)`
@@ -593,13 +593,6 @@ This section and later ones contain fragments written in assembler. The precise
593593
assembler syntax, including that of the relocations, is described in the
594594
[RISC-V Assembly Programmer's Manual](https://github.com/riscv/riscv-asm-manual).
595595

596-
```
597-
NOTE:
598-
599-
1: GNU Toolchain support `R_RISCV_PCREL_LO12_I` and `R_RISCV_PCREL_LO12_S`
600-
with non-zero addend, but it's deprecated, and will be obsoleted in future.
601-
```
602-
603596
### Calculation Symbols
604597

605598
The following table provides details on the variables used in relocation

0 commit comments

Comments
 (0)