File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -548,8 +548,8 @@ Enum | ELF Reloc Type | Description | Field | C
54854821 | R_RISCV_TLS_GOT_HI20 | PC-relative TLS IE GOT offset | _ U-Type_ | | Macro ` la.tls.ie `
54954922 | R_RISCV_TLS_GD_HI20 | PC-relative TLS GD reference | _ U-Type_ | | Macro ` la.tls.gd `
55055023 | 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
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
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)
55355326 | R_RISCV_HI20 | Absolute address | _ U-Type_ | S + A | ` %hi(symbol) `
55455427 | R_RISCV_LO12_I | Absolute address | _ I-Type_ | S + A | ` %lo(symbol) `
55555528 | R_RISCV_LO12_S | Absolute address | _ S-Type_ | S + A | ` %lo(symbol) `
@@ -593,6 +593,13 @@ This section and later ones contain fragments written in assembler. The precise
593593assembler 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+
596603### Calculation Symbols
597604
598605The following table provides details on the variables used in relocation
You can’t perform that action at this time.
0 commit comments