@@ -453,9 +453,9 @@ rules about 2✕XLEN aligned arguments being passed in "aligned" register pairs.
453453* e_flags: Describes the format of this ELF file. These flags are used by the
454454 linker to disallow linking ELF files with incompatible ABIs together.
455455
456- Bit 0 | Bit 1 - 2 | Bit 3 | Bit 4 | Bit 5 | Bit 6 - 31
457- -------|------------|-------|-------|---------|--------- ---
458- RVC | Float ABI | RVE | TSO | Compact | * Reserved *
456+ Bit 0 | Bit 1 - 2 | Bit 3 | Bit 4 | Bit 5 - 31
457+ -------|------------|-------|-------|------------
458+ RVC | Float ABI | RVE | TSO | _ Reserved _
459459
460460
461461 * EF_RISCV_RVC (0x0001): This bit is set when the binary targets the C ABI,
@@ -481,8 +481,6 @@ rules about 2✕XLEN aligned arguments being passed in "aligned" register pairs.
481481 * EF_RISCV_RVE (0x0008): This bit is set when the binary targets the E ABI.
482482 * EF_RISCV_TSO (0x0010): This bit is set when the binary requires the RVTSO
483483 memory consistency model.
484- * EF_RISCV_COMPACT (0x0020): This bit is set when the binary targets the
485- compact code model.
486484
487485 Until such a time that the * Reserved* bits (0xffffffe0) are allocated by
488486 future versions of this specification, they shall not be set by standard
@@ -542,10 +540,10 @@ Enum | ELF Reloc Type | Description | Field
54254030 | R_RISCV_TPREL_LO12_I | TLS LE thread offset | _ I-Type_ | | ` %tprel_lo(symbol) `
54354131 | R_RISCV_TPREL_LO12_S | TLS LE thread offset | _ S-Type_ | | ` %tprel_lo(symbol) `
54454232 | R_RISCV_TPREL_ADD | TLS LE thread usage | | | ` %tprel_add(symbol) `
545- 33 | R_RISCV_ADD8 | 8-bit label addition | _ word8_ | S + A + V
546- 34 | R_RISCV_ADD16 | 16-bit label addition | _ word16_ | S + A + V
547- 35 | R_RISCV_ADD32 | 32-bit label addition | _ word32_ | S + A + V
548- 36 | R_RISCV_ADD64 | 64-bit label addition | _ word64_ | S + A + V
543+ 33 | R_RISCV_ADD8 | 8-bit label addition | _ word8_ | V + S + A
544+ 34 | R_RISCV_ADD16 | 16-bit label addition | _ word16_ | V + S + A
545+ 35 | R_RISCV_ADD32 | 32-bit label addition | _ word32_ | V + S + A
546+ 36 | R_RISCV_ADD64 | 64-bit label addition | _ word64_ | V + S + A
54954737 | R_RISCV_SUB8 | 8-bit label subtraction | _ word8_ | V - S - A
55054838 | R_RISCV_SUB16 | 16-bit label subtraction | _ word16_ | V - S - A
55154939 | R_RISCV_SUB32 | 32-bit label subtraction | _ word32_ | V - S - A
@@ -555,17 +553,17 @@ Enum | ELF Reloc Type | Description | Field
55555343 | R_RISCV_ALIGN | Alignment statement |
55655444 | R_RISCV_RVC_BRANCH | PC-relative branch offset | _ CB-Type_ | S + A - P
55755545 | R_RISCV_RVC_JUMP | PC-relative jump offset | _ CJ-Type_ | S + A - P
558- 46 | R_RISCV_RVC_LUI | Absolute address | _ CI-Type_ | S + A - P
556+ 46 | R_RISCV_RVC_LUI | Absolute address | _ CI-Type_ | S + A
55955747 | R_RISCV_GPREL_I | GP-relative reference | _ I-Type_ | S + A - GP
56055848 | R_RISCV_GPREL_S | GP-relative reference | _ S-Type_ | S + A - GP
56155949 | R_RISCV_TPREL_I | TP-relative TLS LE load | _ I-Type_
56256050 | R_RISCV_TPREL_S | TP-relative TLS LE store | _ S-Type_
563- 51 | R_RISCV_RELAX | Instruction pair can be relaxed |
564- 52 | R_RISCV_SUB6 | Local label subtraction |
565- 53 | R_RISCV_SET6 | Local label subtraction |
566- 54 | R_RISCV_SET8 | Local label subtraction |
567- 55 | R_RISCV_SET16 | Local label subtraction |
568- 56 | R_RISCV_SET32 | Local label subtraction |
561+ 51 | R_RISCV_RELAX | Instruction pair can be relaxed | _ word6 _ | V - S - A
562+ 52 | R_RISCV_SUB6 | Local label subtraction | _ word6 _ | S + A
563+ 53 | R_RISCV_SET6 | Local label assignment | _ word6 _ | S + A
564+ 54 | R_RISCV_SET8 | Local label assignment | _ word8 _ | S + A
565+ 55 | R_RISCV_SET16 | Local label assignment | _ word16 _ | S + A
566+ 56 | R_RISCV_SET32 | Local label assignment | _ word32 _ | S + A
56956757 | R_RISCV_32_PCREL | PC-relative reference | _ word32_ | S + A - P
57056858 | R_RISCV_IRELATIVE | Runtime relocation | _ wordclass_ | ` ifunc_resolver(B + A) `
57156959 | R_RISCV_64_PCREL | PC-relative reference | _ word64_ | S + A - P
0 commit comments