Skip to content

Commit

Permalink
Merge pull request #402 from PiJoules/R_RISCV_GOT32_PCREL
Browse files Browse the repository at this point in the history
Define GOT-Relative data relocation
  • Loading branch information
kito-cheng authored Dec 7, 2023
2 parents 0091ace + 1dff30a commit bb6f298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion riscv-elf.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,9 @@ Description:: Additional information about the relocation
<| V - S - A
.2+| 40 .2+| SUB64 .2+| Static | _word64_ .2+| 64-bit label subtraction
<| V - S - A
.2+| 41-42 .2+| *Reserved* .2+| - | .2+| Reserved for future standard use
.2+| 41 .2+| GOT32_PCREL .2+| Static | _word32_ .2+| 32-bit difference between the GOT entry for a symbol and the current location
<| G + GOT + A - P
.2+| 42 .2+| *Reserved* .2+| - | .2+| Reserved for future standard use
<|
.2+| 43 .2+| ALIGN .2+| Static | .2+| Alignment statement. The addend indicates the number of bytes occupied by `nop` instructions at the relocation offset. The alignment boundary is specified by the addend rounded up to the next power of two.
<|
Expand Down

0 comments on commit bb6f298

Please sign in to comment.