Skip to content

Commit 416138d

Browse files
committed
elf.h: update RISC-V relocation types
Note:sSome relocation types were only used by binutils and accidentally exposed to previous versions of psABI (e.g. riscv-non-isa/riscv-elf-psabi-doc#205 riscv-non-isa/riscv-elf-psabi-doc#323). One of the value has been has been reused by GOT32_PCREL.
1 parent f314e13 commit 416138d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

include/elf.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3254,6 +3254,7 @@ enum
32543254
#define R_RISCV_TLS_DTPREL64 9
32553255
#define R_RISCV_TLS_TPREL32 10
32563256
#define R_RISCV_TLS_TPREL64 11
3257+
#define R_RISCV_TLSDESC 12
32573258

32583259
#define R_RISCV_BRANCH 16
32593260
#define R_RISCV_JAL 17
@@ -3280,23 +3281,26 @@ enum
32803281
#define R_RISCV_SUB16 38
32813282
#define R_RISCV_SUB32 39
32823283
#define R_RISCV_SUB64 40
3283-
#define R_RISCV_GNU_VTINHERIT 41
3284-
#define R_RISCV_GNU_VTENTRY 42
3284+
#define R_RISCV_GOT32_PCREL 41
32853285
#define R_RISCV_ALIGN 43
32863286
#define R_RISCV_RVC_BRANCH 44
32873287
#define R_RISCV_RVC_JUMP 45
32883288
#define R_RISCV_RVC_LUI 46
3289-
#define R_RISCV_GPREL_I 47
3290-
#define R_RISCV_GPREL_S 48
3291-
#define R_RISCV_TPREL_I 49
3292-
#define R_RISCV_TPREL_S 50
32933289
#define R_RISCV_RELAX 51
32943290
#define R_RISCV_SUB6 52
32953291
#define R_RISCV_SET6 53
32963292
#define R_RISCV_SET8 54
32973293
#define R_RISCV_SET16 55
32983294
#define R_RISCV_SET32 56
32993295
#define R_RISCV_32_PCREL 57
3296+
#define R_RISCV_IRELATIVE 58
3297+
#define R_RISCV_PLT32 59
3298+
#define R_RISCV_SET_ULEB128 60
3299+
#define R_RISCV_SUB_ULEB128 61
3300+
#define R_RISCV_TLSDESC_HI20 62
3301+
#define R_RISCV_TLSDESC_LOAD_LO12 63
3302+
#define R_RISCV_TLSDESC_ADD_LO12 64
3303+
#define R_RISCV_TLSDESC_CALL 65
33003304

33013305
#ifdef __cplusplus
33023306
}

0 commit comments

Comments
 (0)