1
2#ifndef ELF_RELOC
3#error "ELF_RELOC must be defined"
4#endif
5
6// TODO: this is just a subset
7ELF_RELOC(R_386_NONE, 0)
8ELF_RELOC(R_386_32, 1)
9ELF_RELOC(R_386_PC32, 2)
10ELF_RELOC(R_386_GOT32, 3)
11ELF_RELOC(R_386_PLT32, 4)
12ELF_RELOC(R_386_COPY, 5)
13ELF_RELOC(R_386_GLOB_DAT, 6)
14ELF_RELOC(R_386_JUMP_SLOT, 7)
15ELF_RELOC(R_386_RELATIVE, 8)
16ELF_RELOC(R_386_GOTOFF, 9)
17ELF_RELOC(R_386_GOTPC, 10)
18ELF_RELOC(R_386_32PLT, 11)
19ELF_RELOC(R_386_TLS_TPOFF, 14)
20ELF_RELOC(R_386_TLS_IE, 15)
21ELF_RELOC(R_386_TLS_GOTIE, 16)
22ELF_RELOC(R_386_TLS_LE, 17)
23ELF_RELOC(R_386_TLS_GD, 18)
24ELF_RELOC(R_386_TLS_LDM, 19)
25ELF_RELOC(R_386_16, 20)
26ELF_RELOC(R_386_PC16, 21)
27ELF_RELOC(R_386_8, 22)
28ELF_RELOC(R_386_PC8, 23)
29ELF_RELOC(R_386_TLS_GD_32, 24)
30ELF_RELOC(R_386_TLS_GD_PUSH, 25)
31ELF_RELOC(R_386_TLS_GD_CALL, 26)
32ELF_RELOC(R_386_TLS_GD_POP, 27)
33ELF_RELOC(R_386_TLS_LDM_32, 28)
34ELF_RELOC(R_386_TLS_LDM_PUSH, 29)
35ELF_RELOC(R_386_TLS_LDM_CALL, 30)
36ELF_RELOC(R_386_TLS_LDM_POP, 31)
37ELF_RELOC(R_386_TLS_LDO_32, 32)
38ELF_RELOC(R_386_TLS_IE_32, 33)
39ELF_RELOC(R_386_TLS_LE_32, 34)
40ELF_RELOC(R_386_TLS_DTPMOD32, 35)
41ELF_RELOC(R_386_TLS_DTPOFF32, 36)
42ELF_RELOC(R_386_TLS_TPOFF32, 37)
43ELF_RELOC(R_386_TLS_GOTDESC, 39)
44ELF_RELOC(R_386_TLS_DESC_CALL, 40)
45ELF_RELOC(R_386_TLS_DESC, 41)
46ELF_RELOC(R_386_IRELATIVE, 42)
47ELF_RELOC(R_386_GOT32X, 43)
48

source code of llvm/include/llvm/BinaryFormat/ELFRelocs/i386.def