Skip to content

Commit c50f48e

Browse files
committed
Address comments by jim-wilson
Use the instruction types per the current v2.2 ISA spec.
1 parent 27e2e28 commit c50f48e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

riscv-elf.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,9 @@ Enum | ELF Reloc Type | Description | Field | C
484484
10 | R_RISCV_TLS_TPREL32 | TLS relocation | _word32_ | S + A + TLS + S_TLS_OFFSET - TLS_DTV_OFFSET
485485
11 | R_RISCV_TLS_TPREL64 | TLS relocation | _word64_ | S + A + TLS + S_TLS_OFFSET - TLS_DTV_OFFSET
486486
16 | R_RISCV_BRANCH | PC-relative branch | _B-Type_ | S + A - P
487-
17 | R_RISCV_JAL | PC-relative jump | _UJ-Type_ | S + A - P
488-
18 | R_RISCV_CALL | PC-relative call | _UJ-Type_ | S + A - P | Macros `call`, `tail`
489-
19 | R_RISCV_CALL_PLT | PC-relative call (PLT) | _UJ-Type_ | S + A - P | Macros `call`, `tail` (PIC)
487+
17 | R_RISCV_JAL | PC-relative jump | _J-Type_ | S + A - P
488+
18 | R_RISCV_CALL | PC-relative call | _J-Type_ | S + A - P | Macros `call`, `tail`
489+
19 | R_RISCV_CALL_PLT | PC-relative call (PLT) | _J-Type_ | S + A - P | Macros `call`, `tail` (PIC)
490490
20 | R_RISCV_GOT_HI20 | PC-relative GOT reference | _U-Type_ | G + A | `%got_pcrel_hi(symbol)`
491491
21 | R_RISCV_TLS_GOT_HI20 | PC-relative TLS IE GOT offset | _U-Type_ | | Macro `la.tls.ie`
492492
22 | R_RISCV_TLS_GD_HI20 | PC-relative TLS GD reference | _U-Type_ | | Macro `la.tls.gd`
@@ -565,13 +565,14 @@ _word16_ | Specifies a 16-bit field
565565
_word32_ | Specifies a 32-bit field
566566
_word64_ | Specifies a 64-bit field
567567
_wordclass_ | Specifies a _word32_ field for ILP32 or a _word64_ field for LP64
568+
_B-Type_ | Specifies a field as the immediate field in a B-type instruction
568569
_CB-Type_ | Specifies a field as the immediate field in a CB-type instruction
569570
_CI-Type_ | Specifies a field as the immediate field in a CI-type instruction
570571
_CJ-Type_ | Specifies a field as the immediate field in a CJ-type instruction
571572
_I-Type_ | Specifies a field as the immediate field in an I-type instruction
572573
_S-Type_ | Specifies a field as the immediate field in an S-type instruction
573574
_U-Type_ | Specifies a field as the immediate field in an U-type instruction
574-
_UJ-Type_ | Specifies a field as the immediate field in an U-type and a J-type instruction
575+
_J-Type_ | Specifies a field as the immediate field in a J-type instruction
575576

576577
### Absolute Addresses
577578

0 commit comments

Comments
 (0)