Skip to content

Commit cf58f12

Browse files
committed
Add GP-relative relocations
1 parent 7b406c1 commit cf58f12

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

riscv-elf.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,13 @@ Description:: Additional information about the relocation
452452
<| S + A
453453
.2+| 61 .2+| SUB_ULEB128 .2+| Static | _ULEB128_ .2+| Local label subtraction <<uleb128-note,*note>>
454454
<| V - S - A
455-
.2+| 62-191 .2+| *Reserved* .2+| - | .2+| Reserved for future standard use
455+
.2+| 62 .2+| GPREL_HI20 .2+| Static | _U-Type_ .2+| High 20 bits of a 32-bit GP-relative address, `%gprel_hi(symbol)`
456+
<| S + A - GP
457+
.2+| 63 .2+| GPREL_LO12_I .2+| Static | _I-type_ .2+| Low 12 bits of a 32-bit GP-relative address, `%gprel_lo(symbol)`
458+
<| S + A - GP
459+
.2+| 64 .2+| GPREL_LO12_S .2+| Static | _S-Type_ .2+| Low 12 bits of a 32-bit GP-relative address, `%gprel_lo(symbol)`
460+
<| S + A - GP
461+
.2+| 65-191 .2+| *Reserved* .2+| - | .2+| Reserved for future standard use
456462
<|
457463
.2+| 192-255 .2+| *Reserved* .2+| - | .2+| Reserved for nonstandard ABI extensions
458464
<|

0 commit comments

Comments
 (0)