@@ -475,7 +475,7 @@ Enum | ELF Reloc Type | Description | Field | C
4754751 | R_RISCV_32 | Runtime relocation | _ word32_ | S + A
4764762 | R_RISCV_64 | Runtime relocation | _ word64_ | S + A
4774773 | R_RISCV_RELATIVE | Runtime relocation | _ wordclass_ | B + A
478- 4 | R_RISCV_COPY | Runtime relocation | | | Must be in executable. not allowed in shared library
478+ 4 | R_RISCV_COPY | Runtime relocation | | | Must be in executable; not allowed in shared library
4794795 | R_RISCV_JUMP_SLOT | Runtime relocation | _ wordclass_ | S | Handled by PLT unless ` LD_BIND_NOW `
4804806 | R_RISCV_TLS_DTPMOD32 | TLS relocation | _ word32_ | S->TLSINDEX
4814817 | R_RISCV_TLS_DTPMOD64 | TLS relocation | _ word64_ | S->TLSINDEX
@@ -500,10 +500,10 @@ Enum | ELF Reloc Type | Description | Field | C
50050030 | R_RISCV_TPREL_LO12_I | TLS LE thread offset | _ I-Type_ | | ` %tprel_lo(symbol) `
50150131 | R_RISCV_TPREL_LO12_S | TLS LE thread offset | _ S-Type_ | | ` %tprel_lo(symbol) `
50250232 | R_RISCV_TPREL_ADD | TLS LE thread usage | | | ` %tprel_add(symbol) `
503- 33 | R_RISCV_ADD8 | 8-bit label addition | _ word8_ | S + A + V
504- 34 | R_RISCV_ADD16 | 16-bit label addition | _ word16_ | S + A + V
505- 35 | R_RISCV_ADD32 | 32-bit label addition | _ word32_ | S + A + V
506- 36 | R_RISCV_ADD64 | 64-bit label addition | _ word64_ | S + A + V
503+ 33 | R_RISCV_ADD8 | 8-bit label addition | _ word8_ | V + S + A
504+ 34 | R_RISCV_ADD16 | 16-bit label addition | _ word16_ | V + S + A
505+ 35 | R_RISCV_ADD32 | 32-bit label addition | _ word32_ | V + S + A
506+ 36 | R_RISCV_ADD64 | 64-bit label addition | _ word64_ | V + S + A
50750737 | R_RISCV_SUB8 | 8-bit label subtraction | _ word8_ | V - S - A
50850838 | R_RISCV_SUB16 | 16-bit label subtraction | _ word16_ | V - S - A
50950939 | R_RISCV_SUB32 | 32-bit label subtraction | _ word32_ | V - S - A
@@ -519,15 +519,15 @@ Enum | ELF Reloc Type | Description | Field | C
51951949 | R_RISCV_TPREL_I | TP-relative TLS LE load | _ I-Type_
52052050 | R_RISCV_TPREL_S | TP-relative TLS LE store | _ S-Type_
52152151 | R_RISCV_RELAX | Instruction pair can be relaxed |
522- 52 | R_RISCV_SUB6 | Local label subtraction |
523- 53 | R_RISCV_SET6 | Local label subtraction |
524- 54 | R_RISCV_SET8 | Local label subtraction |
525- 55 | R_RISCV_SET16 | Local label subtraction |
526- 56 | R_RISCV_SET32 | Local label subtraction |
522+ 52 | R_RISCV_SUB6 | Local label subtraction | _ word6 _ | V - S - A
523+ 53 | R_RISCV_SET6 | Local label assignment | _ word6 _ | S + A
524+ 54 | R_RISCV_SET8 | Local label assignment | _ word8 _ | S + A
525+ 55 | R_RISCV_SET16 | Local label assignment | _ word16 _ | S + A
526+ 56 | R_RISCV_SET32 | Local label assignment | _ word32 _ | S + A
52752757 | R_RISCV_32_PCREL | PC-relative reference | _ word32_ | S + A - P
52852858 | R_RISCV_IRELATIVE | Runtime relocation | _ wordclass_ | ` ifunc_resolver(B + A) `
529- 59-191 | * Reserved* | Reserved for future standard use |
530- 192-255 | * Reserved* | Reserved for nonstandard ABI extensions |
529+ 59-191 | * Reserved* | Reserved for future standard use
530+ 192-255 | * Reserved* | Reserved for nonstandard ABI extensions
531531
532532Nonstandard extensions are free to use relocation numbers 192-255 for any
533533purpose. These relocations may conflict with other nonstandard extensions.
@@ -560,10 +560,11 @@ The following table provides details on the variables used in relocation fields:
560560
561561Variable | Description
562562:------- | :----------
563- _ word8_ | Specifies an 8-bit field
564- _ word16_ | Specifies a 16-bit field
565- _ word32_ | Specifies a 32-bit field
566- _ word64_ | Specifies a 64-bit field
563+ _ word6_ | Specifies the 6 least significant bits of a _ word8_ field
564+ _ word8_ | Specifies an 8-bit word
565+ _ word16_ | Specifies a 16-bit word
566+ _ word32_ | Specifies a 32-bit word
567+ _ word64_ | Specifies a 64-bit word
567568_ wordclass_ | Specifies a _ word32_ field for ILP32 or a _ word64_ field for LP64
568569_ B-Type_ | Specifies a field as the immediate field in a B-type instruction
569570_ CB-Type_ | Specifies a field as the immediate field in a CB-type instruction
0 commit comments