mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
9d5d711f65
This should allow the list of relocations for a particular architecture to be kept in a single header rather than duplicated whenever we need to enumerate all the relocations. Patch by Will Newton. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222565 91177308-0d34-0410-b5e6-96231b3b80d8
48 lines
1.5 KiB
Modula-2
48 lines
1.5 KiB
Modula-2
|
|
#ifndef ELF_RELOC
|
|
#error "ELF_RELOC must be defined"
|
|
#endif
|
|
|
|
// TODO: this is just a subset
|
|
ELF_RELOC(R_386_NONE, 0)
|
|
ELF_RELOC(R_386_32, 1)
|
|
ELF_RELOC(R_386_PC32, 2)
|
|
ELF_RELOC(R_386_GOT32, 3)
|
|
ELF_RELOC(R_386_PLT32, 4)
|
|
ELF_RELOC(R_386_COPY, 5)
|
|
ELF_RELOC(R_386_GLOB_DAT, 6)
|
|
ELF_RELOC(R_386_JUMP_SLOT, 7)
|
|
ELF_RELOC(R_386_RELATIVE, 8)
|
|
ELF_RELOC(R_386_GOTOFF, 9)
|
|
ELF_RELOC(R_386_GOTPC, 10)
|
|
ELF_RELOC(R_386_32PLT, 11)
|
|
ELF_RELOC(R_386_TLS_TPOFF, 14)
|
|
ELF_RELOC(R_386_TLS_IE, 15)
|
|
ELF_RELOC(R_386_TLS_GOTIE, 16)
|
|
ELF_RELOC(R_386_TLS_LE, 17)
|
|
ELF_RELOC(R_386_TLS_GD, 18)
|
|
ELF_RELOC(R_386_TLS_LDM, 19)
|
|
ELF_RELOC(R_386_16, 20)
|
|
ELF_RELOC(R_386_PC16, 21)
|
|
ELF_RELOC(R_386_8, 22)
|
|
ELF_RELOC(R_386_PC8, 23)
|
|
ELF_RELOC(R_386_TLS_GD_32, 24)
|
|
ELF_RELOC(R_386_TLS_GD_PUSH, 25)
|
|
ELF_RELOC(R_386_TLS_GD_CALL, 26)
|
|
ELF_RELOC(R_386_TLS_GD_POP, 27)
|
|
ELF_RELOC(R_386_TLS_LDM_32, 28)
|
|
ELF_RELOC(R_386_TLS_LDM_PUSH, 29)
|
|
ELF_RELOC(R_386_TLS_LDM_CALL, 30)
|
|
ELF_RELOC(R_386_TLS_LDM_POP, 31)
|
|
ELF_RELOC(R_386_TLS_LDO_32, 32)
|
|
ELF_RELOC(R_386_TLS_IE_32, 33)
|
|
ELF_RELOC(R_386_TLS_LE_32, 34)
|
|
ELF_RELOC(R_386_TLS_DTPMOD32, 35)
|
|
ELF_RELOC(R_386_TLS_DTPOFF32, 36)
|
|
ELF_RELOC(R_386_TLS_TPOFF32, 37)
|
|
ELF_RELOC(R_386_TLS_GOTDESC, 39)
|
|
ELF_RELOC(R_386_TLS_DESC_CALL, 40)
|
|
ELF_RELOC(R_386_TLS_DESC, 41)
|
|
ELF_RELOC(R_386_IRELATIVE, 42)
|
|
ELF_RELOC(R_386_NUM, 43)
|