Skip to content

Commit 2b2f883

Browse files
committed
riscv-elf.md: add missing relocation type
Add the relocation type R_RISCV_GPREL_STORE.
1 parent a934e6d commit 2b2f883

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

riscv-elf.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -534,12 +534,13 @@ Enum | ELF Reloc Type | Description | Field
534534
62 | R_RISCV_GPREL_LO12_S | GP-relative reference | _S-type_ | S + A - GP | `%gprel_lo(symbol)`
535535
63 | R_RISCV_GPREL_ADD | GP-relative usage | | | `%gprel(symbol)`
536536
64 | R_RISCV_GPREL_LOAD | GP-relative usage | | | `%gprel(symbol)`
537-
65 | R_RISCV_GOT_GPREL_HI20 | GP-relative GOT reference | _U-type_ | G + A - GP | `%got_gprel_hi(symbol)`
538-
66 | R_RISCV_GOT_GPREL_LO12_I | GP-relative GOT reference | _I-type_ | G + A - GP | `%got_gprel_lo(symbol)`
539-
67 | R_RISCV_GOT_GPREL_ADD | GP-relative GOT usage | | | `%got_gprel(symbol)`
540-
68 | R_RISCV_GOT_GPREL_LOAD | GP-relative GOT usage | | | `%got_gprel(symbol)`
541-
69 | R_RISCV_GOT_GPREL_STORE | GP-relative GOT usage | | | `%got_gprel(symbol)`
542-
70-191 | *Reserved* | Reserved for future standard use |
537+
65 | R_RISCV_GPREL_STORE | GP-relative usage | | | `%gprel(symbol)`
538+
66 | R_RISCV_GOT_GPREL_HI20 | GP-relative GOT reference | _U-type_ | G + A - GP | `%got_gprel_hi(symbol)`
539+
67 | R_RISCV_GOT_GPREL_LO12_I | GP-relative GOT reference | _I-type_ | G + A - GP | `%got_gprel_lo(symbol)`
540+
68 | R_RISCV_GOT_GPREL_ADD | GP-relative GOT usage | | | `%got_gprel(symbol)`
541+
69 | R_RISCV_GOT_GPREL_LOAD | GP-relative GOT usage | | | `%got_gprel(symbol)`
542+
70 | R_RISCV_GOT_GPREL_STORE | GP-relative GOT usage | | | `%got_gprel(symbol)`
543+
71-191 | *Reserved* | Reserved for future standard use |
543544
192-255 | *Reserved* | Reserved for nonstandard ABI extensions |
544545

545546
Nonstandard extensions are free to use relocation numbers 192-255 for any

0 commit comments

Comments
 (0)