diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-10 13:44:06 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-10 13:44:06 +0000 |
commit | 7ab83427af0f77b59941ceba41d509d7d097b065 (patch) | |
tree | cc41c05b1db454e3d802f34df75e636ee922ad87 /include/llvm/Support/ELFRelocs | |
parent | d288ef4c1788d3a951a7558c68312c2d320612b1 (diff) |
Diffstat (limited to 'include/llvm/Support/ELFRelocs')
-rw-r--r-- | include/llvm/Support/ELFRelocs/AArch64.def | 218 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/AMDGPU.def | 16 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/ARM.def | 138 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/AVR.def | 40 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/BPF.def | 8 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/Hexagon.def | 106 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/Lanai.def | 19 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/Mips.def | 117 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/PowerPC.def | 123 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/PowerPC64.def | 181 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/RISCV.def | 50 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/Sparc.def | 89 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/SystemZ.def | 71 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/WebAssembly.def | 8 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/i386.def | 47 | ||||
-rw-r--r-- | include/llvm/Support/ELFRelocs/x86_64.def | 45 |
16 files changed, 0 insertions, 1276 deletions
diff --git a/include/llvm/Support/ELFRelocs/AArch64.def b/include/llvm/Support/ELFRelocs/AArch64.def deleted file mode 100644 index 4afcd7d1f093..000000000000 --- a/include/llvm/Support/ELFRelocs/AArch64.def +++ /dev/null @@ -1,218 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -// Based on ABI release 1.1-beta, dated 6 November 2013. NB: The cover page of -// this document, IHI0056C_beta_aaelf64.pdf, on infocenter.arm.com, still -// labels this as release 1.0. -ELF_RELOC(R_AARCH64_NONE, 0) -ELF_RELOC(R_AARCH64_ABS64, 0x101) -ELF_RELOC(R_AARCH64_ABS32, 0x102) -ELF_RELOC(R_AARCH64_ABS16, 0x103) -ELF_RELOC(R_AARCH64_PREL64, 0x104) -ELF_RELOC(R_AARCH64_PREL32, 0x105) -ELF_RELOC(R_AARCH64_PREL16, 0x106) -ELF_RELOC(R_AARCH64_MOVW_UABS_G0, 0x107) -ELF_RELOC(R_AARCH64_MOVW_UABS_G0_NC, 0x108) -ELF_RELOC(R_AARCH64_MOVW_UABS_G1, 0x109) -ELF_RELOC(R_AARCH64_MOVW_UABS_G1_NC, 0x10a) -ELF_RELOC(R_AARCH64_MOVW_UABS_G2, 0x10b) -ELF_RELOC(R_AARCH64_MOVW_UABS_G2_NC, 0x10c) -ELF_RELOC(R_AARCH64_MOVW_UABS_G3, 0x10d) -ELF_RELOC(R_AARCH64_MOVW_SABS_G0, 0x10e) -ELF_RELOC(R_AARCH64_MOVW_SABS_G1, 0x10f) -ELF_RELOC(R_AARCH64_MOVW_SABS_G2, 0x110) -ELF_RELOC(R_AARCH64_LD_PREL_LO19, 0x111) -ELF_RELOC(R_AARCH64_ADR_PREL_LO21, 0x112) -ELF_RELOC(R_AARCH64_ADR_PREL_PG_HI21, 0x113) -ELF_RELOC(R_AARCH64_ADR_PREL_PG_HI21_NC, 0x114) -ELF_RELOC(R_AARCH64_ADD_ABS_LO12_NC, 0x115) -ELF_RELOC(R_AARCH64_LDST8_ABS_LO12_NC, 0x116) -ELF_RELOC(R_AARCH64_TSTBR14, 0x117) -ELF_RELOC(R_AARCH64_CONDBR19, 0x118) -ELF_RELOC(R_AARCH64_JUMP26, 0x11a) -ELF_RELOC(R_AARCH64_CALL26, 0x11b) -ELF_RELOC(R_AARCH64_LDST16_ABS_LO12_NC, 0x11c) -ELF_RELOC(R_AARCH64_LDST32_ABS_LO12_NC, 0x11d) -ELF_RELOC(R_AARCH64_LDST64_ABS_LO12_NC, 0x11e) -ELF_RELOC(R_AARCH64_MOVW_PREL_G0, 0x11f) -ELF_RELOC(R_AARCH64_MOVW_PREL_G0_NC, 0x120) -ELF_RELOC(R_AARCH64_MOVW_PREL_G1, 0x121) -ELF_RELOC(R_AARCH64_MOVW_PREL_G1_NC, 0x122) -ELF_RELOC(R_AARCH64_MOVW_PREL_G2, 0x123) -ELF_RELOC(R_AARCH64_MOVW_PREL_G2_NC, 0x124) -ELF_RELOC(R_AARCH64_MOVW_PREL_G3, 0x125) -ELF_RELOC(R_AARCH64_LDST128_ABS_LO12_NC, 0x12b) -ELF_RELOC(R_AARCH64_MOVW_GOTOFF_G0, 0x12c) -ELF_RELOC(R_AARCH64_MOVW_GOTOFF_G0_NC, 0x12d) -ELF_RELOC(R_AARCH64_MOVW_GOTOFF_G1, 0x12e) -ELF_RELOC(R_AARCH64_MOVW_GOTOFF_G1_NC, 0x12f) -ELF_RELOC(R_AARCH64_MOVW_GOTOFF_G2, 0x130) -ELF_RELOC(R_AARCH64_MOVW_GOTOFF_G2_NC, 0x131) -ELF_RELOC(R_AARCH64_MOVW_GOTOFF_G3, 0x132) -ELF_RELOC(R_AARCH64_GOTREL64, 0x133) -ELF_RELOC(R_AARCH64_GOTREL32, 0x134) -ELF_RELOC(R_AARCH64_GOT_LD_PREL19, 0x135) -ELF_RELOC(R_AARCH64_LD64_GOTOFF_LO15, 0x136) -ELF_RELOC(R_AARCH64_ADR_GOT_PAGE, 0x137) -ELF_RELOC(R_AARCH64_LD64_GOT_LO12_NC, 0x138) -ELF_RELOC(R_AARCH64_LD64_GOTPAGE_LO15, 0x139) -ELF_RELOC(R_AARCH64_TLSGD_ADR_PREL21, 0x200) -ELF_RELOC(R_AARCH64_TLSGD_ADR_PAGE21, 0x201) -ELF_RELOC(R_AARCH64_TLSGD_ADD_LO12_NC, 0x202) -ELF_RELOC(R_AARCH64_TLSGD_MOVW_G1, 0x203) -ELF_RELOC(R_AARCH64_TLSGD_MOVW_G0_NC, 0x204) -ELF_RELOC(R_AARCH64_TLSLD_ADR_PREL21, 0x205) -ELF_RELOC(R_AARCH64_TLSLD_ADR_PAGE21, 0x206) -ELF_RELOC(R_AARCH64_TLSLD_ADD_LO12_NC, 0x207) -ELF_RELOC(R_AARCH64_TLSLD_MOVW_G1, 0x208) -ELF_RELOC(R_AARCH64_TLSLD_MOVW_G0_NC, 0x209) -ELF_RELOC(R_AARCH64_TLSLD_LD_PREL19, 0x20a) -ELF_RELOC(R_AARCH64_TLSLD_MOVW_DTPREL_G2, 0x20b) -ELF_RELOC(R_AARCH64_TLSLD_MOVW_DTPREL_G1, 0x20c) -ELF_RELOC(R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC, 0x20d) -ELF_RELOC(R_AARCH64_TLSLD_MOVW_DTPREL_G0, 0x20e) -ELF_RELOC(R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC, 0x20f) -ELF_RELOC(R_AARCH64_TLSLD_ADD_DTPREL_HI12, 0x210) -ELF_RELOC(R_AARCH64_TLSLD_ADD_DTPREL_LO12, 0x211) -ELF_RELOC(R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC, 0x212) -ELF_RELOC(R_AARCH64_TLSLD_LDST8_DTPREL_LO12, 0x213) -ELF_RELOC(R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC, 0x214) -ELF_RELOC(R_AARCH64_TLSLD_LDST16_DTPREL_LO12, 0x215) -ELF_RELOC(R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC, 0x216) -ELF_RELOC(R_AARCH64_TLSLD_LDST32_DTPREL_LO12, 0x217) -ELF_RELOC(R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC, 0x218) -ELF_RELOC(R_AARCH64_TLSLD_LDST64_DTPREL_LO12, 0x219) -ELF_RELOC(R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC, 0x21a) -ELF_RELOC(R_AARCH64_TLSIE_MOVW_GOTTPREL_G1, 0x21b) -ELF_RELOC(R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC, 0x21c) -ELF_RELOC(R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21, 0x21d) -ELF_RELOC(R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC, 0x21e) -ELF_RELOC(R_AARCH64_TLSIE_LD_GOTTPREL_PREL19, 0x21f) -ELF_RELOC(R_AARCH64_TLSLE_MOVW_TPREL_G2, 0x220) -ELF_RELOC(R_AARCH64_TLSLE_MOVW_TPREL_G1, 0x221) -ELF_RELOC(R_AARCH64_TLSLE_MOVW_TPREL_G1_NC, 0x222) -ELF_RELOC(R_AARCH64_TLSLE_MOVW_TPREL_G0, 0x223) -ELF_RELOC(R_AARCH64_TLSLE_MOVW_TPREL_G0_NC, 0x224) -ELF_RELOC(R_AARCH64_TLSLE_ADD_TPREL_HI12, 0x225) -ELF_RELOC(R_AARCH64_TLSLE_ADD_TPREL_LO12, 0x226) -ELF_RELOC(R_AARCH64_TLSLE_ADD_TPREL_LO12_NC, 0x227) -ELF_RELOC(R_AARCH64_TLSLE_LDST8_TPREL_LO12, 0x228) -ELF_RELOC(R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC, 0x229) -ELF_RELOC(R_AARCH64_TLSLE_LDST16_TPREL_LO12, 0x22a) -ELF_RELOC(R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC, 0x22b) -ELF_RELOC(R_AARCH64_TLSLE_LDST32_TPREL_LO12, 0x22c) -ELF_RELOC(R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC, 0x22d) -ELF_RELOC(R_AARCH64_TLSLE_LDST64_TPREL_LO12, 0x22e) -ELF_RELOC(R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC, 0x22f) -ELF_RELOC(R_AARCH64_TLSDESC_LD_PREL19, 0x230) -ELF_RELOC(R_AARCH64_TLSDESC_ADR_PREL21, 0x231) -ELF_RELOC(R_AARCH64_TLSDESC_ADR_PAGE21, 0x232) -ELF_RELOC(R_AARCH64_TLSDESC_LD64_LO12, 0x233) -ELF_RELOC(R_AARCH64_TLSDESC_ADD_LO12, 0x234) -ELF_RELOC(R_AARCH64_TLSDESC_OFF_G1, 0x235) -ELF_RELOC(R_AARCH64_TLSDESC_OFF_G0_NC, 0x236) -ELF_RELOC(R_AARCH64_TLSDESC_LDR, 0x237) -ELF_RELOC(R_AARCH64_TLSDESC_ADD, 0x238) -ELF_RELOC(R_AARCH64_TLSDESC_CALL, 0x239) -ELF_RELOC(R_AARCH64_TLSLE_LDST128_TPREL_LO12, 0x23a) -ELF_RELOC(R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC, 0x23b) -ELF_RELOC(R_AARCH64_TLSLD_LDST128_DTPREL_LO12, 0x23c) -ELF_RELOC(R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC, 0x23d) -ELF_RELOC(R_AARCH64_COPY, 0x400) -ELF_RELOC(R_AARCH64_GLOB_DAT, 0x401) -ELF_RELOC(R_AARCH64_JUMP_SLOT, 0x402) -ELF_RELOC(R_AARCH64_RELATIVE, 0x403) -ELF_RELOC(R_AARCH64_TLS_DTPREL64, 0x404) -ELF_RELOC(R_AARCH64_TLS_DTPMOD64, 0x405) -ELF_RELOC(R_AARCH64_TLS_TPREL64, 0x406) -ELF_RELOC(R_AARCH64_TLSDESC, 0x407) -ELF_RELOC(R_AARCH64_IRELATIVE, 0x408) - -// ELF_RELOC(R_AARCH64_P32_NONE, 0) -ELF_RELOC(R_AARCH64_P32_ABS32, 0x001) -ELF_RELOC(R_AARCH64_P32_ABS16, 0x002) -ELF_RELOC(R_AARCH64_P32_PREL32, 0x003) -ELF_RELOC(R_AARCH64_P32_PREL16, 0x004) -ELF_RELOC(R_AARCH64_P32_MOVW_UABS_G0, 0x005) -ELF_RELOC(R_AARCH64_P32_MOVW_UABS_G0_NC, 0x006) -ELF_RELOC(R_AARCH64_P32_MOVW_UABS_G1, 0x007) -ELF_RELOC(R_AARCH64_P32_MOVW_SABS_G0, 0x008) -ELF_RELOC(R_AARCH64_P32_LD_PREL_LO19, 0x009) -ELF_RELOC(R_AARCH64_P32_ADR_PREL_LO21, 0x00a) -ELF_RELOC(R_AARCH64_P32_ADR_PREL_PG_HI21, 0x00b) -ELF_RELOC(R_AARCH64_P32_ADD_ABS_LO12_NC, 0x00c) -ELF_RELOC(R_AARCH64_P32_LDST8_ABS_LO12_NC, 0x00d) -ELF_RELOC(R_AARCH64_P32_LDST16_ABS_LO12_NC, 0x00e) -ELF_RELOC(R_AARCH64_P32_LDST32_ABS_LO12_NC, 0x00f) -ELF_RELOC(R_AARCH64_P32_LDST64_ABS_LO12_NC, 0x010) -ELF_RELOC(R_AARCH64_P32_LDST128_ABS_LO12_NC, 0x011) -ELF_RELOC(R_AARCH64_P32_TSTBR14, 0x012) -ELF_RELOC(R_AARCH64_P32_CONDBR19, 0x013) -ELF_RELOC(R_AARCH64_P32_JUMP26, 0x014) -ELF_RELOC(R_AARCH64_P32_CALL26, 0x015) -ELF_RELOC(R_AARCH64_P32_MOVW_PREL_G0, 0x016) -ELF_RELOC(R_AARCH64_P32_MOVW_PREL_G0_NC, 0x017) -ELF_RELOC(R_AARCH64_P32_MOVW_PREL_G1, 0x018) -ELF_RELOC(R_AARCH64_P32_GOT_LD_PREL19, 0x019) -ELF_RELOC(R_AARCH64_P32_ADR_GOT_PAGE, 0x01a) -ELF_RELOC(R_AARCH64_P32_LD32_GOT_LO12_NC, 0x01b) -ELF_RELOC(R_AARCH64_P32_LD32_GOTPAGE_LO14, 0x01c) -ELF_RELOC(R_AARCH64_P32_TLSGD_ADR_PREL21, 0x050) -ELF_RELOC(R_AARCH64_P32_TLSGD_ADR_PAGE21, 0x051) -ELF_RELOC(R_AARCH64_P32_TLSGD_ADD_LO12_NC, 0x052) -ELF_RELOC(R_AARCH64_P32_TLSLD_ADR_PREL21, 0x053) -ELF_RELOC(R_AARCH64_P32_TLSLD_ADR_PAGE21, 0x054) -ELF_RELOC(R_AARCH64_P32_TLSLD_ADD_LO12_NC, 0x055) -ELF_RELOC(R_AARCH64_P32_TLSLD_LD_PREL19, 0x056) -ELF_RELOC(R_AARCH64_P32_TLSLD_MOVW_DTPREL_G1, 0x057) -ELF_RELOC(R_AARCH64_P32_TLSLD_MOVW_DTPREL_G0, 0x058) -ELF_RELOC(R_AARCH64_P32_TLSLD_MOVW_DTPREL_G0_NC, 0x059) -ELF_RELOC(R_AARCH64_P32_TLSLD_ADD_DTPREL_HI12, 0x05a) -ELF_RELOC(R_AARCH64_P32_TLSLD_ADD_DTPREL_LO12, 0x05b) -ELF_RELOC(R_AARCH64_P32_TLSLD_ADD_DTPREL_LO12_NC, 0x05c) -ELF_RELOC(R_AARCH64_P32_TLSLD_LDST8_DTPREL_LO12, 0x05d) -ELF_RELOC(R_AARCH64_P32_TLSLD_LDST8_DTPREL_LO12_NC, 0x05e) -ELF_RELOC(R_AARCH64_P32_TLSLD_LDST16_DTPREL_LO12, 0x05f) -ELF_RELOC(R_AARCH64_P32_TLSLD_LDST16_DTPREL_LO12_NC, 0x060) -ELF_RELOC(R_AARCH64_P32_TLSLD_LDST32_DTPREL_LO12, 0x061) -ELF_RELOC(R_AARCH64_P32_TLSLD_LDST32_DTPREL_LO12_NC, 0x062) -ELF_RELOC(R_AARCH64_P32_TLSLD_LDST64_DTPREL_LO12, 0x063) -ELF_RELOC(R_AARCH64_P32_TLSLD_LDST64_DTPREL_LO12_NC, 0x064) -ELF_RELOC(R_AARCH64_P32_TLSLD_LDST128_DTPREL_LO12, 0x065) -ELF_RELOC(R_AARCH64_P32_TLSLD_LDST128_DTPREL_LO12_NC,0x066) -ELF_RELOC(R_AARCH64_P32_TLSIE_ADR_GOTTPREL_PAGE21, 0x067) -ELF_RELOC(R_AARCH64_P32_TLSIE_LD32_GOTTPREL_LO12_NC, 0x068) -ELF_RELOC(R_AARCH64_P32_TLSIE_LD_GOTTPREL_PREL19, 0x069) -ELF_RELOC(R_AARCH64_P32_TLSLE_MOVW_TPREL_G1, 0x06a) -ELF_RELOC(R_AARCH64_P32_TLSLE_MOVW_TPREL_G0, 0x06b) -ELF_RELOC(R_AARCH64_P32_TLSLE_MOVW_TPREL_G0_NC, 0x06c) -ELF_RELOC(R_AARCH64_P32_TLSLE_ADD_TPREL_HI12, 0x06d) -ELF_RELOC(R_AARCH64_P32_TLSLE_ADD_TPREL_LO12, 0x06e) -ELF_RELOC(R_AARCH64_P32_TLSLE_ADD_TPREL_LO12_NC, 0x06f) -ELF_RELOC(R_AARCH64_P32_TLSLE_LDST8_TPREL_LO12, 0x070) -ELF_RELOC(R_AARCH64_P32_TLSLE_LDST8_TPREL_LO12_NC, 0x071) -ELF_RELOC(R_AARCH64_P32_TLSLE_LDST16_TPREL_LO12, 0x072) -ELF_RELOC(R_AARCH64_P32_TLSLE_LDST16_TPREL_LO12_NC, 0x073) -ELF_RELOC(R_AARCH64_P32_TLSLE_LDST32_TPREL_LO12, 0x074) -ELF_RELOC(R_AARCH64_P32_TLSLE_LDST32_TPREL_LO12_NC, 0x075) -ELF_RELOC(R_AARCH64_P32_TLSLE_LDST64_TPREL_LO12, 0x076) -ELF_RELOC(R_AARCH64_P32_TLSLE_LDST64_TPREL_LO12_NC, 0x077) -ELF_RELOC(R_AARCH64_P32_TLSLE_LDST128_TPREL_LO12, 0x078) -ELF_RELOC(R_AARCH64_P32_TLSLE_LDST128_TPREL_LO12_NC, 0x079) -ELF_RELOC(R_AARCH64_P32_TLSDESC_LD_PREL19, 0x07a) -ELF_RELOC(R_AARCH64_P32_TLSDESC_ADR_PREL21, 0x07b) -ELF_RELOC(R_AARCH64_P32_TLSDESC_ADR_PAGE21, 0x07c) -ELF_RELOC(R_AARCH64_P32_TLSDESC_LD32_LO12, 0x07d) -ELF_RELOC(R_AARCH64_P32_TLSDESC_ADD_LO12, 0x07e) -ELF_RELOC(R_AARCH64_P32_TLSDESC_CALL, 0x07f) -ELF_RELOC(R_AARCH64_P32_COPY, 0x0b4) -ELF_RELOC(R_AARCH64_P32_GLOB_DAT, 0x0b5) -ELF_RELOC(R_AARCH64_P32_JUMP_SLOT, 0x0b6) -ELF_RELOC(R_AARCH64_P32_RELATIVE, 0x0b7) -ELF_RELOC(R_AARCH64_P32_TLS_DTPREL, 0x0b8) -ELF_RELOC(R_AARCH64_P32_TLS_DTPMOD, 0x0b9) -ELF_RELOC(R_AARCH64_P32_TLS_TPREL, 0x0ba) -ELF_RELOC(R_AARCH64_P32_TLSDESC, 0x0bb) -ELF_RELOC(R_AARCH64_P32_IRELATIVE, 0x0bc) diff --git a/include/llvm/Support/ELFRelocs/AMDGPU.def b/include/llvm/Support/ELFRelocs/AMDGPU.def deleted file mode 100644 index c66f88d14ec7..000000000000 --- a/include/llvm/Support/ELFRelocs/AMDGPU.def +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -ELF_RELOC(R_AMDGPU_NONE, 0) -ELF_RELOC(R_AMDGPU_ABS32_LO, 1) -ELF_RELOC(R_AMDGPU_ABS32_HI, 2) -ELF_RELOC(R_AMDGPU_ABS64, 3) -ELF_RELOC(R_AMDGPU_REL32, 4) -ELF_RELOC(R_AMDGPU_REL64, 5) -ELF_RELOC(R_AMDGPU_ABS32, 6) -ELF_RELOC(R_AMDGPU_GOTPCREL, 7) -ELF_RELOC(R_AMDGPU_GOTPCREL32_LO, 8) -ELF_RELOC(R_AMDGPU_GOTPCREL32_HI, 9) -ELF_RELOC(R_AMDGPU_REL32_LO, 10) -ELF_RELOC(R_AMDGPU_REL32_HI, 11) diff --git a/include/llvm/Support/ELFRelocs/ARM.def b/include/llvm/Support/ELFRelocs/ARM.def deleted file mode 100644 index 730fc5b8836c..000000000000 --- a/include/llvm/Support/ELFRelocs/ARM.def +++ /dev/null @@ -1,138 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -// Meets 2.09 ABI Specs. -ELF_RELOC(R_ARM_NONE, 0x00) -ELF_RELOC(R_ARM_PC24, 0x01) -ELF_RELOC(R_ARM_ABS32, 0x02) -ELF_RELOC(R_ARM_REL32, 0x03) -ELF_RELOC(R_ARM_LDR_PC_G0, 0x04) -ELF_RELOC(R_ARM_ABS16, 0x05) -ELF_RELOC(R_ARM_ABS12, 0x06) -ELF_RELOC(R_ARM_THM_ABS5, 0x07) -ELF_RELOC(R_ARM_ABS8, 0x08) -ELF_RELOC(R_ARM_SBREL32, 0x09) -ELF_RELOC(R_ARM_THM_CALL, 0x0a) -ELF_RELOC(R_ARM_THM_PC8, 0x0b) -ELF_RELOC(R_ARM_BREL_ADJ, 0x0c) -ELF_RELOC(R_ARM_TLS_DESC, 0x0d) -ELF_RELOC(R_ARM_THM_SWI8, 0x0e) -ELF_RELOC(R_ARM_XPC25, 0x0f) -ELF_RELOC(R_ARM_THM_XPC22, 0x10) -ELF_RELOC(R_ARM_TLS_DTPMOD32, 0x11) -ELF_RELOC(R_ARM_TLS_DTPOFF32, 0x12) -ELF_RELOC(R_ARM_TLS_TPOFF32, 0x13) -ELF_RELOC(R_ARM_COPY, 0x14) -ELF_RELOC(R_ARM_GLOB_DAT, 0x15) -ELF_RELOC(R_ARM_JUMP_SLOT, 0x16) -ELF_RELOC(R_ARM_RELATIVE, 0x17) -ELF_RELOC(R_ARM_GOTOFF32, 0x18) -ELF_RELOC(R_ARM_BASE_PREL, 0x19) -ELF_RELOC(R_ARM_GOT_BREL, 0x1a) -ELF_RELOC(R_ARM_PLT32, 0x1b) -ELF_RELOC(R_ARM_CALL, 0x1c) -ELF_RELOC(R_ARM_JUMP24, 0x1d) -ELF_RELOC(R_ARM_THM_JUMP24, 0x1e) -ELF_RELOC(R_ARM_BASE_ABS, 0x1f) -ELF_RELOC(R_ARM_ALU_PCREL_7_0, 0x20) -ELF_RELOC(R_ARM_ALU_PCREL_15_8, 0x21) -ELF_RELOC(R_ARM_ALU_PCREL_23_15, 0x22) -ELF_RELOC(R_ARM_LDR_SBREL_11_0_NC, 0x23) -ELF_RELOC(R_ARM_ALU_SBREL_19_12_NC, 0x24) -ELF_RELOC(R_ARM_ALU_SBREL_27_20_CK, 0x25) -ELF_RELOC(R_ARM_TARGET1, 0x26) -ELF_RELOC(R_ARM_SBREL31, 0x27) -ELF_RELOC(R_ARM_V4BX, 0x28) -ELF_RELOC(R_ARM_TARGET2, 0x29) -ELF_RELOC(R_ARM_PREL31, 0x2a) -ELF_RELOC(R_ARM_MOVW_ABS_NC, 0x2b) -ELF_RELOC(R_ARM_MOVT_ABS, 0x2c) -ELF_RELOC(R_ARM_MOVW_PREL_NC, 0x2d) -ELF_RELOC(R_ARM_MOVT_PREL, 0x2e) -ELF_RELOC(R_ARM_THM_MOVW_ABS_NC, 0x2f) -ELF_RELOC(R_ARM_THM_MOVT_ABS, 0x30) -ELF_RELOC(R_ARM_THM_MOVW_PREL_NC, 0x31) -ELF_RELOC(R_ARM_THM_MOVT_PREL, 0x32) -ELF_RELOC(R_ARM_THM_JUMP19, 0x33) -ELF_RELOC(R_ARM_THM_JUMP6, 0x34) -ELF_RELOC(R_ARM_THM_ALU_PREL_11_0, 0x35) -ELF_RELOC(R_ARM_THM_PC12, 0x36) -ELF_RELOC(R_ARM_ABS32_NOI, 0x37) -ELF_RELOC(R_ARM_REL32_NOI, 0x38) -ELF_RELOC(R_ARM_ALU_PC_G0_NC, 0x39) -ELF_RELOC(R_ARM_ALU_PC_G0, 0x3a) -ELF_RELOC(R_ARM_ALU_PC_G1_NC, 0x3b) -ELF_RELOC(R_ARM_ALU_PC_G1, 0x3c) -ELF_RELOC(R_ARM_ALU_PC_G2, 0x3d) -ELF_RELOC(R_ARM_LDR_PC_G1, 0x3e) -ELF_RELOC(R_ARM_LDR_PC_G2, 0x3f) -ELF_RELOC(R_ARM_LDRS_PC_G0, 0x40) -ELF_RELOC(R_ARM_LDRS_PC_G1, 0x41) -ELF_RELOC(R_ARM_LDRS_PC_G2, 0x42) -ELF_RELOC(R_ARM_LDC_PC_G0, 0x43) -ELF_RELOC(R_ARM_LDC_PC_G1, 0x44) -ELF_RELOC(R_ARM_LDC_PC_G2, 0x45) -ELF_RELOC(R_ARM_ALU_SB_G0_NC, 0x46) -ELF_RELOC(R_ARM_ALU_SB_G0, 0x47) -ELF_RELOC(R_ARM_ALU_SB_G1_NC, 0x48) -ELF_RELOC(R_ARM_ALU_SB_G1, 0x49) -ELF_RELOC(R_ARM_ALU_SB_G2, 0x4a) -ELF_RELOC(R_ARM_LDR_SB_G0, 0x4b) -ELF_RELOC(R_ARM_LDR_SB_G1, 0x4c) -ELF_RELOC(R_ARM_LDR_SB_G2, 0x4d) -ELF_RELOC(R_ARM_LDRS_SB_G0, 0x4e) -ELF_RELOC(R_ARM_LDRS_SB_G1, 0x4f) -ELF_RELOC(R_ARM_LDRS_SB_G2, 0x50) -ELF_RELOC(R_ARM_LDC_SB_G0, 0x51) -ELF_RELOC(R_ARM_LDC_SB_G1, 0x52) -ELF_RELOC(R_ARM_LDC_SB_G2, 0x53) -ELF_RELOC(R_ARM_MOVW_BREL_NC, 0x54) -ELF_RELOC(R_ARM_MOVT_BREL, 0x55) -ELF_RELOC(R_ARM_MOVW_BREL, 0x56) -ELF_RELOC(R_ARM_THM_MOVW_BREL_NC, 0x57) -ELF_RELOC(R_ARM_THM_MOVT_BREL, 0x58) -ELF_RELOC(R_ARM_THM_MOVW_BREL, 0x59) -ELF_RELOC(R_ARM_TLS_GOTDESC, 0x5a) -ELF_RELOC(R_ARM_TLS_CALL, 0x5b) -ELF_RELOC(R_ARM_TLS_DESCSEQ, 0x5c) -ELF_RELOC(R_ARM_THM_TLS_CALL, 0x5d) -ELF_RELOC(R_ARM_PLT32_ABS, 0x5e) -ELF_RELOC(R_ARM_GOT_ABS, 0x5f) -ELF_RELOC(R_ARM_GOT_PREL, 0x60) -ELF_RELOC(R_ARM_GOT_BREL12, 0x61) -ELF_RELOC(R_ARM_GOTOFF12, 0x62) -ELF_RELOC(R_ARM_GOTRELAX, 0x63) -ELF_RELOC(R_ARM_GNU_VTENTRY, 0x64) -ELF_RELOC(R_ARM_GNU_VTINHERIT, 0x65) -ELF_RELOC(R_ARM_THM_JUMP11, 0x66) -ELF_RELOC(R_ARM_THM_JUMP8, 0x67) -ELF_RELOC(R_ARM_TLS_GD32, 0x68) -ELF_RELOC(R_ARM_TLS_LDM32, 0x69) -ELF_RELOC(R_ARM_TLS_LDO32, 0x6a) -ELF_RELOC(R_ARM_TLS_IE32, 0x6b) -ELF_RELOC(R_ARM_TLS_LE32, 0x6c) -ELF_RELOC(R_ARM_TLS_LDO12, 0x6d) -ELF_RELOC(R_ARM_TLS_LE12, 0x6e) -ELF_RELOC(R_ARM_TLS_IE12GP, 0x6f) -ELF_RELOC(R_ARM_PRIVATE_0, 0x70) -ELF_RELOC(R_ARM_PRIVATE_1, 0x71) -ELF_RELOC(R_ARM_PRIVATE_2, 0x72) -ELF_RELOC(R_ARM_PRIVATE_3, 0x73) -ELF_RELOC(R_ARM_PRIVATE_4, 0x74) -ELF_RELOC(R_ARM_PRIVATE_5, 0x75) -ELF_RELOC(R_ARM_PRIVATE_6, 0x76) -ELF_RELOC(R_ARM_PRIVATE_7, 0x77) -ELF_RELOC(R_ARM_PRIVATE_8, 0x78) -ELF_RELOC(R_ARM_PRIVATE_9, 0x79) -ELF_RELOC(R_ARM_PRIVATE_10, 0x7a) -ELF_RELOC(R_ARM_PRIVATE_11, 0x7b) -ELF_RELOC(R_ARM_PRIVATE_12, 0x7c) -ELF_RELOC(R_ARM_PRIVATE_13, 0x7d) -ELF_RELOC(R_ARM_PRIVATE_14, 0x7e) -ELF_RELOC(R_ARM_PRIVATE_15, 0x7f) -ELF_RELOC(R_ARM_ME_TOO, 0x80) -ELF_RELOC(R_ARM_THM_TLS_DESCSEQ16, 0x81) -ELF_RELOC(R_ARM_THM_TLS_DESCSEQ32, 0x82) -ELF_RELOC(R_ARM_IRELATIVE, 0xa0) diff --git a/include/llvm/Support/ELFRelocs/AVR.def b/include/llvm/Support/ELFRelocs/AVR.def deleted file mode 100644 index 5692d6cb9aa0..000000000000 --- a/include/llvm/Support/ELFRelocs/AVR.def +++ /dev/null @@ -1,40 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -ELF_RELOC(R_AVR_NONE, 0) -ELF_RELOC(R_AVR_32, 1) -ELF_RELOC(R_AVR_7_PCREL, 2) -ELF_RELOC(R_AVR_13_PCREL, 3) -ELF_RELOC(R_AVR_16, 4) -ELF_RELOC(R_AVR_16_PM, 5) -ELF_RELOC(R_AVR_LO8_LDI, 6) -ELF_RELOC(R_AVR_HI8_LDI, 7) -ELF_RELOC(R_AVR_HH8_LDI, 8) -ELF_RELOC(R_AVR_LO8_LDI_NEG, 9) -ELF_RELOC(R_AVR_HI8_LDI_NEG, 10) -ELF_RELOC(R_AVR_HH8_LDI_NEG, 11) -ELF_RELOC(R_AVR_LO8_LDI_PM, 12) -ELF_RELOC(R_AVR_HI8_LDI_PM, 13) -ELF_RELOC(R_AVR_HH8_LDI_PM, 14) -ELF_RELOC(R_AVR_LO8_LDI_PM_NEG, 15) -ELF_RELOC(R_AVR_HI8_LDI_PM_NEG, 16) -ELF_RELOC(R_AVR_HH8_LDI_PM_NEG, 17) -ELF_RELOC(R_AVR_CALL, 18) -ELF_RELOC(R_AVR_LDI, 19) -ELF_RELOC(R_AVR_6, 20) -ELF_RELOC(R_AVR_6_ADIW, 21) -ELF_RELOC(R_AVR_MS8_LDI, 22) -ELF_RELOC(R_AVR_MS8_LDI_NEG, 23) -ELF_RELOC(R_AVR_LO8_LDI_GS, 24) -ELF_RELOC(R_AVR_HI8_LDI_GS, 25) -ELF_RELOC(R_AVR_8, 26) -ELF_RELOC(R_AVR_8_LO8, 27) -ELF_RELOC(R_AVR_8_HI8, 28) -ELF_RELOC(R_AVR_8_HLO8, 29) -ELF_RELOC(R_AVR_SYM_DIFF, 30) -ELF_RELOC(R_AVR_16_LDST, 31) -ELF_RELOC(R_AVR_LDS_STS_16, 33) -ELF_RELOC(R_AVR_PORT6, 34) -ELF_RELOC(R_AVR_PORT5, 35) diff --git a/include/llvm/Support/ELFRelocs/BPF.def b/include/llvm/Support/ELFRelocs/BPF.def deleted file mode 100644 index 5dd7f70b6963..000000000000 --- a/include/llvm/Support/ELFRelocs/BPF.def +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -// No relocation -ELF_RELOC(R_BPF_NONE, 0) -ELF_RELOC(R_BPF_64_64, 1) -ELF_RELOC(R_BPF_64_32, 10) diff --git a/include/llvm/Support/ELFRelocs/Hexagon.def b/include/llvm/Support/ELFRelocs/Hexagon.def deleted file mode 100644 index 5021e2b26ce5..000000000000 --- a/include/llvm/Support/ELFRelocs/Hexagon.def +++ /dev/null @@ -1,106 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -// Release 5 ABI -ELF_RELOC(R_HEX_NONE, 0) -ELF_RELOC(R_HEX_B22_PCREL, 1) -ELF_RELOC(R_HEX_B15_PCREL, 2) -ELF_RELOC(R_HEX_B7_PCREL, 3) -ELF_RELOC(R_HEX_LO16, 4) -ELF_RELOC(R_HEX_HI16, 5) -ELF_RELOC(R_HEX_32, 6) -ELF_RELOC(R_HEX_16, 7) -ELF_RELOC(R_HEX_8, 8) -ELF_RELOC(R_HEX_GPREL16_0, 9) -ELF_RELOC(R_HEX_GPREL16_1, 10) -ELF_RELOC(R_HEX_GPREL16_2, 11) -ELF_RELOC(R_HEX_GPREL16_3, 12) -ELF_RELOC(R_HEX_HL16, 13) -ELF_RELOC(R_HEX_B13_PCREL, 14) -ELF_RELOC(R_HEX_B9_PCREL, 15) -ELF_RELOC(R_HEX_B32_PCREL_X, 16) -ELF_RELOC(R_HEX_32_6_X, 17) -ELF_RELOC(R_HEX_B22_PCREL_X, 18) -ELF_RELOC(R_HEX_B15_PCREL_X, 19) -ELF_RELOC(R_HEX_B13_PCREL_X, 20) -ELF_RELOC(R_HEX_B9_PCREL_X, 21) -ELF_RELOC(R_HEX_B7_PCREL_X, 22) -ELF_RELOC(R_HEX_16_X, 23) -ELF_RELOC(R_HEX_12_X, 24) -ELF_RELOC(R_HEX_11_X, 25) -ELF_RELOC(R_HEX_10_X, 26) -ELF_RELOC(R_HEX_9_X, 27) -ELF_RELOC(R_HEX_8_X, 28) -ELF_RELOC(R_HEX_7_X, 29) -ELF_RELOC(R_HEX_6_X, 30) -ELF_RELOC(R_HEX_32_PCREL, 31) -ELF_RELOC(R_HEX_COPY, 32) -ELF_RELOC(R_HEX_GLOB_DAT, 33) -ELF_RELOC(R_HEX_JMP_SLOT, 34) -ELF_RELOC(R_HEX_RELATIVE, 35) -ELF_RELOC(R_HEX_PLT_B22_PCREL, 36) -ELF_RELOC(R_HEX_GOTREL_LO16, 37) -ELF_RELOC(R_HEX_GOTREL_HI16, 38) -ELF_RELOC(R_HEX_GOTREL_32, 39) -ELF_RELOC(R_HEX_GOT_LO16, 40) -ELF_RELOC(R_HEX_GOT_HI16, 41) -ELF_RELOC(R_HEX_GOT_32, 42) -ELF_RELOC(R_HEX_GOT_16, 43) -ELF_RELOC(R_HEX_DTPMOD_32, 44) -ELF_RELOC(R_HEX_DTPREL_LO16, 45) -ELF_RELOC(R_HEX_DTPREL_HI16, 46) -ELF_RELOC(R_HEX_DTPREL_32, 47) -ELF_RELOC(R_HEX_DTPREL_16, 48) -ELF_RELOC(R_HEX_GD_PLT_B22_PCREL, 49) -ELF_RELOC(R_HEX_GD_GOT_LO16, 50) -ELF_RELOC(R_HEX_GD_GOT_HI16, 51) -ELF_RELOC(R_HEX_GD_GOT_32, 52) -ELF_RELOC(R_HEX_GD_GOT_16, 53) -ELF_RELOC(R_HEX_IE_LO16, 54) -ELF_RELOC(R_HEX_IE_HI16, 55) -ELF_RELOC(R_HEX_IE_32, 56) -ELF_RELOC(R_HEX_IE_GOT_LO16, 57) -ELF_RELOC(R_HEX_IE_GOT_HI16, 58) -ELF_RELOC(R_HEX_IE_GOT_32, 59) -ELF_RELOC(R_HEX_IE_GOT_16, 60) -ELF_RELOC(R_HEX_TPREL_LO16, 61) -ELF_RELOC(R_HEX_TPREL_HI16, 62) -ELF_RELOC(R_HEX_TPREL_32, 63) -ELF_RELOC(R_HEX_TPREL_16, 64) -ELF_RELOC(R_HEX_6_PCREL_X, 65) -ELF_RELOC(R_HEX_GOTREL_32_6_X, 66) -ELF_RELOC(R_HEX_GOTREL_16_X, 67) -ELF_RELOC(R_HEX_GOTREL_11_X, 68) -ELF_RELOC(R_HEX_GOT_32_6_X, 69) -ELF_RELOC(R_HEX_GOT_16_X, 70) -ELF_RELOC(R_HEX_GOT_11_X, 71) -ELF_RELOC(R_HEX_DTPREL_32_6_X, 72) -ELF_RELOC(R_HEX_DTPREL_16_X, 73) -ELF_RELOC(R_HEX_DTPREL_11_X, 74) -ELF_RELOC(R_HEX_GD_GOT_32_6_X, 75) -ELF_RELOC(R_HEX_GD_GOT_16_X, 76) -ELF_RELOC(R_HEX_GD_GOT_11_X, 77) -ELF_RELOC(R_HEX_IE_32_6_X, 78) -ELF_RELOC(R_HEX_IE_16_X, 79) -ELF_RELOC(R_HEX_IE_GOT_32_6_X, 80) -ELF_RELOC(R_HEX_IE_GOT_16_X, 81) -ELF_RELOC(R_HEX_IE_GOT_11_X, 82) -ELF_RELOC(R_HEX_TPREL_32_6_X, 83) -ELF_RELOC(R_HEX_TPREL_16_X, 84) -ELF_RELOC(R_HEX_TPREL_11_X, 85) -ELF_RELOC(R_HEX_LD_PLT_B22_PCREL, 86) -ELF_RELOC(R_HEX_LD_GOT_LO16, 87) -ELF_RELOC(R_HEX_LD_GOT_HI16, 88) -ELF_RELOC(R_HEX_LD_GOT_32, 89) -ELF_RELOC(R_HEX_LD_GOT_16, 90) -ELF_RELOC(R_HEX_LD_GOT_32_6_X, 91) -ELF_RELOC(R_HEX_LD_GOT_16_X, 92) -ELF_RELOC(R_HEX_LD_GOT_11_X, 93) -ELF_RELOC(R_HEX_23_REG, 94) -ELF_RELOC(R_HEX_GD_PLT_B22_PCREL_X, 95) -ELF_RELOC(R_HEX_GD_PLT_B32_PCREL_X, 96) -ELF_RELOC(R_HEX_LD_PLT_B22_PCREL_X, 97) -ELF_RELOC(R_HEX_LD_PLT_B32_PCREL_X, 98) -ELF_RELOC(R_HEX_27_REG, 99) diff --git a/include/llvm/Support/ELFRelocs/Lanai.def b/include/llvm/Support/ELFRelocs/Lanai.def deleted file mode 100644 index 77ecb048403d..000000000000 --- a/include/llvm/Support/ELFRelocs/Lanai.def +++ /dev/null @@ -1,19 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -// No relocation -ELF_RELOC(R_LANAI_NONE, 0) -// 21-bit symbol relocation -ELF_RELOC(R_LANAI_21, 1) -// 21-bit symbol relocation with last two bits masked to 0 -ELF_RELOC(R_LANAI_21_F, 2) -// 25-bit branch targets -ELF_RELOC(R_LANAI_25, 3) -// General 32-bit relocation -ELF_RELOC(R_LANAI_32, 4) -// Upper 16-bits of a symbolic relocation -ELF_RELOC(R_LANAI_HI16, 5) -// Lower 16-bits of a symbolic relocation -ELF_RELOC(R_LANAI_LO16, 6) diff --git a/include/llvm/Support/ELFRelocs/Mips.def b/include/llvm/Support/ELFRelocs/Mips.def deleted file mode 100644 index bc0088dff3f4..000000000000 --- a/include/llvm/Support/ELFRelocs/Mips.def +++ /dev/null @@ -1,117 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -ELF_RELOC(R_MIPS_NONE, 0) -ELF_RELOC(R_MIPS_16, 1) -ELF_RELOC(R_MIPS_32, 2) -ELF_RELOC(R_MIPS_REL32, 3) -ELF_RELOC(R_MIPS_26, 4) -ELF_RELOC(R_MIPS_HI16, 5) -ELF_RELOC(R_MIPS_LO16, 6) -ELF_RELOC(R_MIPS_GPREL16, 7) -ELF_RELOC(R_MIPS_LITERAL, 8) -ELF_RELOC(R_MIPS_GOT16, 9) -ELF_RELOC(R_MIPS_PC16, 10) -ELF_RELOC(R_MIPS_CALL16, 11) -ELF_RELOC(R_MIPS_GPREL32, 12) -ELF_RELOC(R_MIPS_UNUSED1, 13) -ELF_RELOC(R_MIPS_UNUSED2, 14) -ELF_RELOC(R_MIPS_UNUSED3, 15) -ELF_RELOC(R_MIPS_SHIFT5, 16) -ELF_RELOC(R_MIPS_SHIFT6, 17) -ELF_RELOC(R_MIPS_64, 18) -ELF_RELOC(R_MIPS_GOT_DISP, 19) -ELF_RELOC(R_MIPS_GOT_PAGE, 20) -ELF_RELOC(R_MIPS_GOT_OFST, 21) -ELF_RELOC(R_MIPS_GOT_HI16, 22) -ELF_RELOC(R_MIPS_GOT_LO16, 23) -ELF_RELOC(R_MIPS_SUB, 24) -ELF_RELOC(R_MIPS_INSERT_A, 25) -ELF_RELOC(R_MIPS_INSERT_B, 26) -ELF_RELOC(R_MIPS_DELETE, 27) -ELF_RELOC(R_MIPS_HIGHER, 28) -ELF_RELOC(R_MIPS_HIGHEST, 29) -ELF_RELOC(R_MIPS_CALL_HI16, 30) -ELF_RELOC(R_MIPS_CALL_LO16, 31) -ELF_RELOC(R_MIPS_SCN_DISP, 32) -ELF_RELOC(R_MIPS_REL16, 33) -ELF_RELOC(R_MIPS_ADD_IMMEDIATE, 34) -ELF_RELOC(R_MIPS_PJUMP, 35) -ELF_RELOC(R_MIPS_RELGOT, 36) -ELF_RELOC(R_MIPS_JALR, 37) -ELF_RELOC(R_MIPS_TLS_DTPMOD32, 38) -ELF_RELOC(R_MIPS_TLS_DTPREL32, 39) -ELF_RELOC(R_MIPS_TLS_DTPMOD64, 40) -ELF_RELOC(R_MIPS_TLS_DTPREL64, 41) -ELF_RELOC(R_MIPS_TLS_GD, 42) -ELF_RELOC(R_MIPS_TLS_LDM, 43) -ELF_RELOC(R_MIPS_TLS_DTPREL_HI16, 44) -ELF_RELOC(R_MIPS_TLS_DTPREL_LO16, 45) -ELF_RELOC(R_MIPS_TLS_GOTTPREL, 46) -ELF_RELOC(R_MIPS_TLS_TPREL32, 47) -ELF_RELOC(R_MIPS_TLS_TPREL64, 48) -ELF_RELOC(R_MIPS_TLS_TPREL_HI16, 49) -ELF_RELOC(R_MIPS_TLS_TPREL_LO16, 50) -ELF_RELOC(R_MIPS_GLOB_DAT, 51) -ELF_RELOC(R_MIPS_PC21_S2, 60) -ELF_RELOC(R_MIPS_PC26_S2, 61) -ELF_RELOC(R_MIPS_PC18_S3, 62) -ELF_RELOC(R_MIPS_PC19_S2, 63) -ELF_RELOC(R_MIPS_PCHI16, 64) -ELF_RELOC(R_MIPS_PCLO16, 65) -ELF_RELOC(R_MIPS16_26, 100) -ELF_RELOC(R_MIPS16_GPREL, 101) -ELF_RELOC(R_MIPS16_GOT16, 102) -ELF_RELOC(R_MIPS16_CALL16, 103) -ELF_RELOC(R_MIPS16_HI16, 104) -ELF_RELOC(R_MIPS16_LO16, 105) -ELF_RELOC(R_MIPS16_TLS_GD, 106) -ELF_RELOC(R_MIPS16_TLS_LDM, 107) -ELF_RELOC(R_MIPS16_TLS_DTPREL_HI16, 108) -ELF_RELOC(R_MIPS16_TLS_DTPREL_LO16, 109) -ELF_RELOC(R_MIPS16_TLS_GOTTPREL, 110) -ELF_RELOC(R_MIPS16_TLS_TPREL_HI16, 111) -ELF_RELOC(R_MIPS16_TLS_TPREL_LO16, 112) -ELF_RELOC(R_MIPS_COPY, 126) -ELF_RELOC(R_MIPS_JUMP_SLOT, 127) -ELF_RELOC(R_MICROMIPS_26_S1, 133) -ELF_RELOC(R_MICROMIPS_HI16, 134) -ELF_RELOC(R_MICROMIPS_LO16, 135) -ELF_RELOC(R_MICROMIPS_GPREL16, 136) -ELF_RELOC(R_MICROMIPS_LITERAL, 137) -ELF_RELOC(R_MICROMIPS_GOT16, 138) -ELF_RELOC(R_MICROMIPS_PC7_S1, 139) -ELF_RELOC(R_MICROMIPS_PC10_S1, 140) -ELF_RELOC(R_MICROMIPS_PC16_S1, 141) -ELF_RELOC(R_MICROMIPS_CALL16, 142) -ELF_RELOC(R_MICROMIPS_GOT_DISP, 145) -ELF_RELOC(R_MICROMIPS_GOT_PAGE, 146) -ELF_RELOC(R_MICROMIPS_GOT_OFST, 147) -ELF_RELOC(R_MICROMIPS_GOT_HI16, 148) -ELF_RELOC(R_MICROMIPS_GOT_LO16, 149) -ELF_RELOC(R_MICROMIPS_SUB, 150) -ELF_RELOC(R_MICROMIPS_HIGHER, 151) -ELF_RELOC(R_MICROMIPS_HIGHEST, 152) -ELF_RELOC(R_MICROMIPS_CALL_HI16, 153) -ELF_RELOC(R_MICROMIPS_CALL_LO16, 154) -ELF_RELOC(R_MICROMIPS_SCN_DISP, 155) -ELF_RELOC(R_MICROMIPS_JALR, 156) -ELF_RELOC(R_MICROMIPS_HI0_LO16, 157) -ELF_RELOC(R_MICROMIPS_TLS_GD, 162) -ELF_RELOC(R_MICROMIPS_TLS_LDM, 163) -ELF_RELOC(R_MICROMIPS_TLS_DTPREL_HI16, 164) -ELF_RELOC(R_MICROMIPS_TLS_DTPREL_LO16, 165) -ELF_RELOC(R_MICROMIPS_TLS_GOTTPREL, 166) -ELF_RELOC(R_MICROMIPS_TLS_TPREL_HI16, 169) -ELF_RELOC(R_MICROMIPS_TLS_TPREL_LO16, 170) -ELF_RELOC(R_MICROMIPS_GPREL7_S2, 172) -ELF_RELOC(R_MICROMIPS_PC23_S2, 173) -ELF_RELOC(R_MICROMIPS_PC21_S1, 174) -ELF_RELOC(R_MICROMIPS_PC26_S1, 175) -ELF_RELOC(R_MICROMIPS_PC18_S3, 176) -ELF_RELOC(R_MICROMIPS_PC19_S2, 177) -ELF_RELOC(R_MIPS_NUM, 218) -ELF_RELOC(R_MIPS_PC32, 248) -ELF_RELOC(R_MIPS_EH, 249) diff --git a/include/llvm/Support/ELFRelocs/PowerPC.def b/include/llvm/Support/ELFRelocs/PowerPC.def deleted file mode 100644 index e4f8ee0ebe2b..000000000000 --- a/include/llvm/Support/ELFRelocs/PowerPC.def +++ /dev/null @@ -1,123 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -// glibc's PowerPC asm/sigcontext.h, when compiling for PPC64, has the -// unfortunate behavior of including asm/elf.h, which defines R_PPC_NONE, etc. -// to their corresponding integer values. As a result, we need to undef them -// here before continuing. - -#undef R_PPC_NONE -#undef R_PPC_ADDR32 -#undef R_PPC_ADDR24 -#undef R_PPC_ADDR16 -#undef R_PPC_ADDR16_LO -#undef R_PPC_ADDR16_HI -#undef R_PPC_ADDR16_HA -#undef R_PPC_ADDR14 -#undef R_PPC_ADDR14_BRTAKEN -#undef R_PPC_ADDR14_BRNTAKEN -#undef R_PPC_REL24 -#undef R_PPC_REL14 -#undef R_PPC_REL14_BRTAKEN -#undef R_PPC_REL14_BRNTAKEN -#undef R_PPC_GOT16 -#undef R_PPC_GOT16_LO -#undef R_PPC_GOT16_HI -#undef R_PPC_GOT16_HA -#undef R_PPC_PLTREL24 -#undef R_PPC_JMP_SLOT -#undef R_PPC_LOCAL24PC -#undef R_PPC_REL32 -#undef R_PPC_TLS -#undef R_PPC_DTPMOD32 -#undef R_PPC_TPREL16 -#undef R_PPC_TPREL16_LO -#undef R_PPC_TPREL16_HI -#undef R_PPC_TPREL16_HA -#undef R_PPC_TPREL32 -#undef R_PPC_DTPREL16 -#undef R_PPC_DTPREL16_LO -#undef R_PPC_DTPREL16_HI -#undef R_PPC_DTPREL16_HA -#undef R_PPC_DTPREL32 -#undef R_PPC_GOT_TLSGD16 -#undef R_PPC_GOT_TLSGD16_LO -#undef R_PPC_GOT_TLSGD16_HI -#undef R_PPC_GOT_TLSGD16_HA -#undef R_PPC_GOT_TLSLD16 -#undef R_PPC_GOT_TLSLD16_LO -#undef R_PPC_GOT_TLSLD16_HI -#undef R_PPC_GOT_TLSLD16_HA -#undef R_PPC_GOT_TPREL16 -#undef R_PPC_GOT_TPREL16_LO -#undef R_PPC_GOT_TPREL16_HI -#undef R_PPC_GOT_TPREL16_HA -#undef R_PPC_GOT_DTPREL16 -#undef R_PPC_GOT_DTPREL16_LO -#undef R_PPC_GOT_DTPREL16_HI -#undef R_PPC_GOT_DTPREL16_HA -#undef R_PPC_TLSGD -#undef R_PPC_TLSLD -#undef R_PPC_REL16 -#undef R_PPC_REL16_LO -#undef R_PPC_REL16_HI -#undef R_PPC_REL16_HA - -ELF_RELOC(R_PPC_NONE, 0) /* No relocation. */ -ELF_RELOC(R_PPC_ADDR32, 1) -ELF_RELOC(R_PPC_ADDR24, 2) -ELF_RELOC(R_PPC_ADDR16, 3) -ELF_RELOC(R_PPC_ADDR16_LO, 4) -ELF_RELOC(R_PPC_ADDR16_HI, 5) -ELF_RELOC(R_PPC_ADDR16_HA, 6) -ELF_RELOC(R_PPC_ADDR14, 7) -ELF_RELOC(R_PPC_ADDR14_BRTAKEN, 8) -ELF_RELOC(R_PPC_ADDR14_BRNTAKEN, 9) -ELF_RELOC(R_PPC_REL24, 10) -ELF_RELOC(R_PPC_REL14, 11) -ELF_RELOC(R_PPC_REL14_BRTAKEN, 12) -ELF_RELOC(R_PPC_REL14_BRNTAKEN, 13) -ELF_RELOC(R_PPC_GOT16, 14) -ELF_RELOC(R_PPC_GOT16_LO, 15) -ELF_RELOC(R_PPC_GOT16_HI, 16) -ELF_RELOC(R_PPC_GOT16_HA, 17) -ELF_RELOC(R_PPC_PLTREL24, 18) -ELF_RELOC(R_PPC_JMP_SLOT, 21) -ELF_RELOC(R_PPC_LOCAL24PC, 23) -ELF_RELOC(R_PPC_REL32, 26) -ELF_RELOC(R_PPC_TLS, 67) -ELF_RELOC(R_PPC_DTPMOD32, 68) -ELF_RELOC(R_PPC_TPREL16, 69) -ELF_RELOC(R_PPC_TPREL16_LO, 70) -ELF_RELOC(R_PPC_TPREL16_HI, 71) -ELF_RELOC(R_PPC_TPREL16_HA, 72) -ELF_RELOC(R_PPC_TPREL32, 73) -ELF_RELOC(R_PPC_DTPREL16, 74) -ELF_RELOC(R_PPC_DTPREL16_LO, 75) -ELF_RELOC(R_PPC_DTPREL16_HI, 76) -ELF_RELOC(R_PPC_DTPREL16_HA, 77) -ELF_RELOC(R_PPC_DTPREL32, 78) -ELF_RELOC(R_PPC_GOT_TLSGD16, 79) -ELF_RELOC(R_PPC_GOT_TLSGD16_LO, 80) -ELF_RELOC(R_PPC_GOT_TLSGD16_HI, 81) -ELF_RELOC(R_PPC_GOT_TLSGD16_HA, 82) -ELF_RELOC(R_PPC_GOT_TLSLD16, 83) -ELF_RELOC(R_PPC_GOT_TLSLD16_LO, 84) -ELF_RELOC(R_PPC_GOT_TLSLD16_HI, 85) -ELF_RELOC(R_PPC_GOT_TLSLD16_HA, 86) -ELF_RELOC(R_PPC_GOT_TPREL16, 87) -ELF_RELOC(R_PPC_GOT_TPREL16_LO, 88) -ELF_RELOC(R_PPC_GOT_TPREL16_HI, 89) -ELF_RELOC(R_PPC_GOT_TPREL16_HA, 90) -ELF_RELOC(R_PPC_GOT_DTPREL16, 91) -ELF_RELOC(R_PPC_GOT_DTPREL16_LO, 92) -ELF_RELOC(R_PPC_GOT_DTPREL16_HI, 93) -ELF_RELOC(R_PPC_GOT_DTPREL16_HA, 94) -ELF_RELOC(R_PPC_TLSGD, 95) -ELF_RELOC(R_PPC_TLSLD, 96) -ELF_RELOC(R_PPC_REL16, 249) -ELF_RELOC(R_PPC_REL16_LO, 250) -ELF_RELOC(R_PPC_REL16_HI, 251) -ELF_RELOC(R_PPC_REL16_HA, 252) diff --git a/include/llvm/Support/ELFRelocs/PowerPC64.def b/include/llvm/Support/ELFRelocs/PowerPC64.def deleted file mode 100644 index 3a47c5a07574..000000000000 --- a/include/llvm/Support/ELFRelocs/PowerPC64.def +++ /dev/null @@ -1,181 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -// glibc's PowerPC asm/sigcontext.h, when compiling for PPC64, has the -// unfortunate behavior of including asm/elf.h, which defines R_PPC_NONE, etc. -// to their corresponding integer values. As a result, we need to undef them -// here before continuing. - -#undef R_PPC64_NONE -#undef R_PPC64_ADDR32 -#undef R_PPC64_ADDR24 -#undef R_PPC64_ADDR16 -#undef R_PPC64_ADDR16_LO -#undef R_PPC64_ADDR16_HI -#undef R_PPC64_ADDR16_HA -#undef R_PPC64_ADDR14 -#undef R_PPC64_ADDR14_BRTAKEN -#undef R_PPC64_ADDR14_BRNTAKEN -#undef R_PPC64_REL24 -#undef R_PPC64_REL14 -#undef R_PPC64_REL14_BRTAKEN -#undef R_PPC64_REL14_BRNTAKEN -#undef R_PPC64_GOT16 -#undef R_PPC64_GOT16_LO -#undef R_PPC64_GOT16_HI -#undef R_PPC64_GOT16_HA -#undef R_PPC64_GLOB_DAT -#undef R_PPC64_JMP_SLOT -#undef R_PPC64_RELATIVE -#undef R_PPC64_REL32 -#undef R_PPC64_ADDR64 -#undef R_PPC64_ADDR16_HIGHER -#undef R_PPC64_ADDR16_HIGHERA -#undef R_PPC64_ADDR16_HIGHEST -#undef R_PPC64_ADDR16_HIGHESTA -#undef R_PPC64_REL64 -#undef R_PPC64_TOC16 -#undef R_PPC64_TOC16_LO -#undef R_PPC64_TOC16_HI -#undef R_PPC64_TOC16_HA -#undef R_PPC64_TOC -#undef R_PPC64_ADDR16_DS -#undef R_PPC64_ADDR16_LO_DS -#undef R_PPC64_GOT16_DS -#undef R_PPC64_GOT16_LO_DS -#undef R_PPC64_TOC16_DS -#undef R_PPC64_TOC16_LO_DS -#undef R_PPC64_TLS -#undef R_PPC64_DTPMOD64 -#undef R_PPC64_TPREL16 -#undef R_PPC64_TPREL16_LO -#undef R_PPC64_TPREL16_HI -#undef R_PPC64_TPREL16_HA -#undef R_PPC64_TPREL64 -#undef R_PPC64_DTPREL16 -#undef R_PPC64_DTPREL16_LO -#undef R_PPC64_DTPREL16_HI -#undef R_PPC64_DTPREL16_HA -#undef R_PPC64_DTPREL64 -#undef R_PPC64_GOT_TLSGD16 -#undef R_PPC64_GOT_TLSGD16_LO -#undef R_PPC64_GOT_TLSGD16_HI -#undef R_PPC64_GOT_TLSGD16_HA -#undef R_PPC64_GOT_TLSLD16 -#undef R_PPC64_GOT_TLSLD16_LO -#undef R_PPC64_GOT_TLSLD16_HI -#undef R_PPC64_GOT_TLSLD16_HA -#undef R_PPC64_GOT_TPREL16_DS -#undef R_PPC64_GOT_TPREL16_LO_DS -#undef R_PPC64_GOT_TPREL16_HI -#undef R_PPC64_GOT_TPREL16_HA -#undef R_PPC64_GOT_DTPREL16_DS -#undef R_PPC64_GOT_DTPREL16_LO_DS -#undef R_PPC64_GOT_DTPREL16_HI -#undef R_PPC64_GOT_DTPREL16_HA -#undef R_PPC64_TPREL16_DS -#undef R_PPC64_TPREL16_LO_DS -#undef R_PPC64_TPREL16_HIGHER -#undef R_PPC64_TPREL16_HIGHERA -#undef R_PPC64_TPREL16_HIGHEST -#undef R_PPC64_TPREL16_HIGHESTA -#undef R_PPC64_DTPREL16_DS -#undef R_PPC64_DTPREL16_LO_DS -#undef R_PPC64_DTPREL16_HIGHER -#undef R_PPC64_DTPREL16_HIGHERA -#undef R_PPC64_DTPREL16_HIGHEST -#undef R_PPC64_DTPREL16_HIGHESTA -#undef R_PPC64_TLSGD -#undef R_PPC64_TLSLD -#undef R_PPC64_REL16 -#undef R_PPC64_REL16_LO -#undef R_PPC64_REL16_HI -#undef R_PPC64_REL16_HA - -ELF_RELOC(R_PPC64_NONE, 0) -ELF_RELOC(R_PPC64_ADDR32, 1) -ELF_RELOC(R_PPC64_ADDR24, 2) -ELF_RELOC(R_PPC64_ADDR16, 3) -ELF_RELOC(R_PPC64_ADDR16_LO, 4) -ELF_RELOC(R_PPC64_ADDR16_HI, 5) -ELF_RELOC(R_PPC64_ADDR16_HA, 6) -ELF_RELOC(R_PPC64_ADDR14, 7) -ELF_RELOC(R_PPC64_ADDR14_BRTAKEN, 8) -ELF_RELOC(R_PPC64_ADDR14_BRNTAKEN, 9) -ELF_RELOC(R_PPC64_REL24, 10) -ELF_RELOC(R_PPC64_REL14, 11) -ELF_RELOC(R_PPC64_REL14_BRTAKEN, 12) -ELF_RELOC(R_PPC64_REL14_BRNTAKEN, 13) -ELF_RELOC(R_PPC64_GOT16, 14) -ELF_RELOC(R_PPC64_GOT16_LO, 15) -ELF_RELOC(R_PPC64_GOT16_HI, 16) -ELF_RELOC(R_PPC64_GOT16_HA, 17) -ELF_RELOC(R_PPC64_GLOB_DAT, 20) -ELF_RELOC(R_PPC64_JMP_SLOT, 21) -ELF_RELOC(R_PPC64_RELATIVE, 22) -ELF_RELOC(R_PPC64_REL32, 26) -ELF_RELOC(R_PPC64_ADDR64, 38) -ELF_RELOC(R_PPC64_ADDR16_HIGHER, 39) -ELF_RELOC(R_PPC64_ADDR16_HIGHERA, 40) -ELF_RELOC(R_PPC64_ADDR16_HIGHEST, 41) -ELF_RELOC(R_PPC64_ADDR16_HIGHESTA, 42) -ELF_RELOC(R_PPC64_REL64, 44) -ELF_RELOC(R_PPC64_TOC16, 47) -ELF_RELOC(R_PPC64_TOC16_LO, 48) -ELF_RELOC(R_PPC64_TOC16_HI, 49) -ELF_RELOC(R_PPC64_TOC16_HA, 50) -ELF_RELOC(R_PPC64_TOC, 51) -ELF_RELOC(R_PPC64_ADDR16_DS, 56) -ELF_RELOC(R_PPC64_ADDR16_LO_DS, 57) -ELF_RELOC(R_PPC64_GOT16_DS, 58) -ELF_RELOC(R_PPC64_GOT16_LO_DS, 59) -ELF_RELOC(R_PPC64_TOC16_DS, 63) -ELF_RELOC(R_PPC64_TOC16_LO_DS, 64) -ELF_RELOC(R_PPC64_TLS, 67) -ELF_RELOC(R_PPC64_DTPMOD64, 68) -ELF_RELOC(R_PPC64_TPREL16, 69) -ELF_RELOC(R_PPC64_TPREL16_LO, 70) -ELF_RELOC(R_PPC64_TPREL16_HI, 71) -ELF_RELOC(R_PPC64_TPREL16_HA, 72) -ELF_RELOC(R_PPC64_TPREL64, 73) -ELF_RELOC(R_PPC64_DTPREL16, 74) -ELF_RELOC(R_PPC64_DTPREL16_LO, 75) -ELF_RELOC(R_PPC64_DTPREL16_HI, 76) -ELF_RELOC(R_PPC64_DTPREL16_HA, 77) -ELF_RELOC(R_PPC64_DTPREL64, 78) -ELF_RELOC(R_PPC64_GOT_TLSGD16, 79) -ELF_RELOC(R_PPC64_GOT_TLSGD16_LO, 80) -ELF_RELOC(R_PPC64_GOT_TLSGD16_HI, 81) -ELF_RELOC(R_PPC64_GOT_TLSGD16_HA, 82) -ELF_RELOC(R_PPC64_GOT_TLSLD16, 83) -ELF_RELOC(R_PPC64_GOT_TLSLD16_LO, 84) -ELF_RELOC(R_PPC64_GOT_TLSLD16_HI, 85) -ELF_RELOC(R_PPC64_GOT_TLSLD16_HA, 86) -ELF_RELOC(R_PPC64_GOT_TPREL16_DS, 87) -ELF_RELOC(R_PPC64_GOT_TPREL16_LO_DS, 88) -ELF_RELOC(R_PPC64_GOT_TPREL16_HI, 89) -ELF_RELOC(R_PPC64_GOT_TPREL16_HA, 90) -ELF_RELOC(R_PPC64_GOT_DTPREL16_DS, 91) -ELF_RELOC(R_PPC64_GOT_DTPREL16_LO_DS, 92) -ELF_RELOC(R_PPC64_GOT_DTPREL16_HI, 93) -ELF_RELOC(R_PPC64_GOT_DTPREL16_HA, 94) -ELF_RELOC(R_PPC64_TPREL16_DS, 95) -ELF_RELOC(R_PPC64_TPREL16_LO_DS, 96) -ELF_RELOC(R_PPC64_TPREL16_HIGHER, 97) -ELF_RELOC(R_PPC64_TPREL16_HIGHERA, 98) -ELF_RELOC(R_PPC64_TPREL16_HIGHEST, 99) -ELF_RELOC(R_PPC64_TPREL16_HIGHESTA, 100) -ELF_RELOC(R_PPC64_DTPREL16_DS, 101) -ELF_RELOC(R_PPC64_DTPREL16_LO_DS, 102) -ELF_RELOC(R_PPC64_DTPREL16_HIGHER, 103) -ELF_RELOC(R_PPC64_DTPREL16_HIGHERA, 104) -ELF_RELOC(R_PPC64_DTPREL16_HIGHEST, 105) -ELF_RELOC(R_PPC64_DTPREL16_HIGHESTA, 106) -ELF_RELOC(R_PPC64_TLSGD, 107) -ELF_RELOC(R_PPC64_TLSLD, 108) -ELF_RELOC(R_PPC64_REL16, 249) -ELF_RELOC(R_PPC64_REL16_LO, 250) -ELF_RELOC(R_PPC64_REL16_HI, 251) -ELF_RELOC(R_PPC64_REL16_HA, 252) diff --git a/include/llvm/Support/ELFRelocs/RISCV.def b/include/llvm/Support/ELFRelocs/RISCV.def deleted file mode 100644 index 9ec4955d26db..000000000000 --- a/include/llvm/Support/ELFRelocs/RISCV.def +++ /dev/null @@ -1,50 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -ELF_RELOC(R_RISCV_NONE, 0) -ELF_RELOC(R_RISCV_32, 1) -ELF_RELOC(R_RISCV_64, 2) -ELF_RELOC(R_RISCV_RELATIVE, 3) -ELF_RELOC(R_RISCV_COPY, 4) -ELF_RELOC(R_RISCV_JUMP_SLOT, 5) -ELF_RELOC(R_RISCV_TLS_DTPMOD32, 6) -ELF_RELOC(R_RISCV_TLS_DTPMOD64, 7) -ELF_RELOC(R_RISCV_TLS_DTPREL32, 8) -ELF_RELOC(R_RISCV_TLS_DTPREL64, 9) -ELF_RELOC(R_RISCV_TLS_TPREL32, 10) -ELF_RELOC(R_RISCV_TLS_TPREL64, 11) -ELF_RELOC(R_RISCV_BRANCH, 16) -ELF_RELOC(R_RISCV_JAL, 17) -ELF_RELOC(R_RISCV_CALL, 18) -ELF_RELOC(R_RISCV_CALL_PLT, 19) -ELF_RELOC(R_RISCV_GOT_HI20, 20) -ELF_RELOC(R_RISCV_TLS_GOT_HI20, 21) -ELF_RELOC(R_RISCV_TLS_GD_HI20, 22) -ELF_RELOC(R_RISCV_PCREL_HI20, 23) -ELF_RELOC(R_RISCV_PCREL_LO12_I, 24) -ELF_RELOC(R_RISCV_PCREL_LO12_S, 25) -ELF_RELOC(R_RISCV_HI20, 26) -ELF_RELOC(R_RISCV_LO12_I, 27) -ELF_RELOC(R_RISCV_LO12_S, 28) -ELF_RELOC(R_RISCV_TPREL_HI20, 29) -ELF_RELOC(R_RISCV_TPREL_LO12_I, 30) -ELF_RELOC(R_RISCV_TPREL_LO12_S, 31) -ELF_RELOC(R_RISCV_TPREL_ADD, 32) -ELF_RELOC(R_RISCV_ADD8, 33) -ELF_RELOC(R_RISCV_ADD16, 34) -ELF_RELOC(R_RISCV_ADD32, 35) -ELF_RELOC(R_RISCV_ADD64, 36) -ELF_RELOC(R_RISCV_SUB8, 37) -ELF_RELOC(R_RISCV_SUB16, 38) -ELF_RELOC(R_RISCV_SUB32, 39) -ELF_RELOC(R_RISCV_SUB64, 40) -ELF_RELOC(R_RISCV_GNU_VTINHERIT, 41) -ELF_RELOC(R_RISCV_GNU_VTENTRY, 42) -ELF_RELOC(R_RISCV_ALIGN, 43) -ELF_RELOC(R_RISCV_RVC_BRANCH, 44) -ELF_RELOC(R_RISCV_RVC_JUMP, 45) -ELF_RELOC(R_RISCV_RVC_LUI, 46) -ELF_RELOC(R_RISCV_GPREL_I, 47) -ELF_RELOC(R_RISCV_GPREL_S, 48) diff --git a/include/llvm/Support/ELFRelocs/Sparc.def b/include/llvm/Support/ELFRelocs/Sparc.def deleted file mode 100644 index 7e01a4a8a0a0..000000000000 --- a/include/llvm/Support/ELFRelocs/Sparc.def +++ /dev/null @@ -1,89 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -ELF_RELOC(R_SPARC_NONE, 0) -ELF_RELOC(R_SPARC_8, 1) -ELF_RELOC(R_SPARC_16, 2) -ELF_RELOC(R_SPARC_32, 3) -ELF_RELOC(R_SPARC_DISP8, 4) -ELF_RELOC(R_SPARC_DISP16, 5) -ELF_RELOC(R_SPARC_DISP32, 6) -ELF_RELOC(R_SPARC_WDISP30, 7) -ELF_RELOC(R_SPARC_WDISP22, 8) -ELF_RELOC(R_SPARC_HI22, 9) -ELF_RELOC(R_SPARC_22, 10) -ELF_RELOC(R_SPARC_13, 11) -ELF_RELOC(R_SPARC_LO10, 12) -ELF_RELOC(R_SPARC_GOT10, 13) -ELF_RELOC(R_SPARC_GOT13, 14) -ELF_RELOC(R_SPARC_GOT22, 15) -ELF_RELOC(R_SPARC_PC10, 16) -ELF_RELOC(R_SPARC_PC22, 17) -ELF_RELOC(R_SPARC_WPLT30, 18) -ELF_RELOC(R_SPARC_COPY, 19) -ELF_RELOC(R_SPARC_GLOB_DAT, 20) -ELF_RELOC(R_SPARC_JMP_SLOT, 21) -ELF_RELOC(R_SPARC_RELATIVE, 22) -ELF_RELOC(R_SPARC_UA32, 23) -ELF_RELOC(R_SPARC_PLT32, 24) -ELF_RELOC(R_SPARC_HIPLT22, 25) -ELF_RELOC(R_SPARC_LOPLT10, 26) -ELF_RELOC(R_SPARC_PCPLT32, 27) -ELF_RELOC(R_SPARC_PCPLT22, 28) -ELF_RELOC(R_SPARC_PCPLT10, 29) -ELF_RELOC(R_SPARC_10, 30) -ELF_RELOC(R_SPARC_11, 31) -ELF_RELOC(R_SPARC_64, 32) -ELF_RELOC(R_SPARC_OLO10, 33) -ELF_RELOC(R_SPARC_HH22, 34) -ELF_RELOC(R_SPARC_HM10, 35) -ELF_RELOC(R_SPARC_LM22, 36) -ELF_RELOC(R_SPARC_PC_HH22, 37) -ELF_RELOC(R_SPARC_PC_HM10, 38) -ELF_RELOC(R_SPARC_PC_LM22, 39) -ELF_RELOC(R_SPARC_WDISP16, 40) -ELF_RELOC(R_SPARC_WDISP19, 41) -ELF_RELOC(R_SPARC_7, 43) -ELF_RELOC(R_SPARC_5, 44) -ELF_RELOC(R_SPARC_6, 45) -ELF_RELOC(R_SPARC_DISP64, 46) -ELF_RELOC(R_SPARC_PLT64, 47) -ELF_RELOC(R_SPARC_HIX22, 48) -ELF_RELOC(R_SPARC_LOX10, 49) -ELF_RELOC(R_SPARC_H44, 50) -ELF_RELOC(R_SPARC_M44, 51) -ELF_RELOC(R_SPARC_L44, 52) -ELF_RELOC(R_SPARC_REGISTER, 53) -ELF_RELOC(R_SPARC_UA64, 54) -ELF_RELOC(R_SPARC_UA16, 55) -ELF_RELOC(R_SPARC_TLS_GD_HI22, 56) -ELF_RELOC(R_SPARC_TLS_GD_LO10, 57) -ELF_RELOC(R_SPARC_TLS_GD_ADD, 58) -ELF_RELOC(R_SPARC_TLS_GD_CALL, 59) -ELF_RELOC(R_SPARC_TLS_LDM_HI22, 60) -ELF_RELOC(R_SPARC_TLS_LDM_LO10, 61) -ELF_RELOC(R_SPARC_TLS_LDM_ADD, 62) -ELF_RELOC(R_SPARC_TLS_LDM_CALL, 63) -ELF_RELOC(R_SPARC_TLS_LDO_HIX22, 64) -ELF_RELOC(R_SPARC_TLS_LDO_LOX10, 65) -ELF_RELOC(R_SPARC_TLS_LDO_ADD, 66) -ELF_RELOC(R_SPARC_TLS_IE_HI22, 67) -ELF_RELOC(R_SPARC_TLS_IE_LO10, 68) -ELF_RELOC(R_SPARC_TLS_IE_LD, 69) -ELF_RELOC(R_SPARC_TLS_IE_LDX, 70) -ELF_RELOC(R_SPARC_TLS_IE_ADD, 71) -ELF_RELOC(R_SPARC_TLS_LE_HIX22, 72) -ELF_RELOC(R_SPARC_TLS_LE_LOX10, 73) -ELF_RELOC(R_SPARC_TLS_DTPMOD32, 74) -ELF_RELOC(R_SPARC_TLS_DTPMOD64, 75) -ELF_RELOC(R_SPARC_TLS_DTPOFF32, 76) -ELF_RELOC(R_SPARC_TLS_DTPOFF64, 77) -ELF_RELOC(R_SPARC_TLS_TPOFF32, 78) -ELF_RELOC(R_SPARC_TLS_TPOFF64, 79) -ELF_RELOC(R_SPARC_GOTDATA_HIX22, 80) -ELF_RELOC(R_SPARC_GOTDATA_LOX10, 81) -ELF_RELOC(R_SPARC_GOTDATA_OP_HIX22, 82) -ELF_RELOC(R_SPARC_GOTDATA_OP_LOX10, 83) -ELF_RELOC(R_SPARC_GOTDATA_OP, 84) diff --git a/include/llvm/Support/ELFRelocs/SystemZ.def b/include/llvm/Support/ELFRelocs/SystemZ.def deleted file mode 100644 index d6c0b79d40ab..000000000000 --- a/include/llvm/Support/ELFRelocs/SystemZ.def +++ /dev/null @@ -1,71 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -ELF_RELOC(R_390_NONE, 0) -ELF_RELOC(R_390_8, 1) -ELF_RELOC(R_390_12, 2) -ELF_RELOC(R_390_16, 3) -ELF_RELOC(R_390_32, 4) -ELF_RELOC(R_390_PC32, 5) -ELF_RELOC(R_390_GOT12, 6) -ELF_RELOC(R_390_GOT32, 7) -ELF_RELOC(R_390_PLT32, 8) -ELF_RELOC(R_390_COPY, 9) -ELF_RELOC(R_390_GLOB_DAT, 10) -ELF_RELOC(R_390_JMP_SLOT, 11) -ELF_RELOC(R_390_RELATIVE, 12) -ELF_RELOC(R_390_GOTOFF, 13) -ELF_RELOC(R_390_GOTPC, 14) -ELF_RELOC(R_390_GOT16, 15) -ELF_RELOC(R_390_PC16, 16) -ELF_RELOC(R_390_PC16DBL, 17) -ELF_RELOC(R_390_PLT16DBL, 18) -ELF_RELOC(R_390_PC32DBL, 19) -ELF_RELOC(R_390_PLT32DBL, 20) -ELF_RELOC(R_390_GOTPCDBL, 21) -ELF_RELOC(R_390_64, 22) -ELF_RELOC(R_390_PC64, 23) -ELF_RELOC(R_390_GOT64, 24) -ELF_RELOC(R_390_PLT64, 25) -ELF_RELOC(R_390_GOTENT, 26) -ELF_RELOC(R_390_GOTOFF16, 27) -ELF_RELOC(R_390_GOTOFF64, 28) -ELF_RELOC(R_390_GOTPLT12, 29) -ELF_RELOC(R_390_GOTPLT16, 30) -ELF_RELOC(R_390_GOTPLT32, 31) -ELF_RELOC(R_390_GOTPLT64, 32) -ELF_RELOC(R_390_GOTPLTENT, 33) -ELF_RELOC(R_390_PLTOFF16, 34) -ELF_RELOC(R_390_PLTOFF32, 35) -ELF_RELOC(R_390_PLTOFF64, 36) -ELF_RELOC(R_390_TLS_LOAD, 37) -ELF_RELOC(R_390_TLS_GDCALL, 38) -ELF_RELOC(R_390_TLS_LDCALL, 39) -ELF_RELOC(R_390_TLS_GD32, 40) -ELF_RELOC(R_390_TLS_GD64, 41) -ELF_RELOC(R_390_TLS_GOTIE12, 42) -ELF_RELOC(R_390_TLS_GOTIE32, 43) -ELF_RELOC(R_390_TLS_GOTIE64, 44) -ELF_RELOC(R_390_TLS_LDM32, 45) -ELF_RELOC(R_390_TLS_LDM64, 46) -ELF_RELOC(R_390_TLS_IE32, 47) -ELF_RELOC(R_390_TLS_IE64, 48) -ELF_RELOC(R_390_TLS_IEENT, 49) -ELF_RELOC(R_390_TLS_LE32, 50) -ELF_RELOC(R_390_TLS_LE64, 51) -ELF_RELOC(R_390_TLS_LDO32, 52) -ELF_RELOC(R_390_TLS_LDO64, 53) -ELF_RELOC(R_390_TLS_DTPMOD, 54) -ELF_RELOC(R_390_TLS_DTPOFF, 55) -ELF_RELOC(R_390_TLS_TPOFF, 56) -ELF_RELOC(R_390_20, 57) -ELF_RELOC(R_390_GOT20, 58) -ELF_RELOC(R_390_GOTPLT20, 59) -ELF_RELOC(R_390_TLS_GOTIE20, 60) -ELF_RELOC(R_390_IRELATIVE, 61) -ELF_RELOC(R_390_PC12DBL, 62) -ELF_RELOC(R_390_PLT12DBL, 63) -ELF_RELOC(R_390_PC24DBL, 64) -ELF_RELOC(R_390_PLT24DBL, 65) diff --git a/include/llvm/Support/ELFRelocs/WebAssembly.def b/include/llvm/Support/ELFRelocs/WebAssembly.def deleted file mode 100644 index 9a34349efb96..000000000000 --- a/include/llvm/Support/ELFRelocs/WebAssembly.def +++ /dev/null @@ -1,8 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -ELF_RELOC(R_WEBASSEMBLY_NONE, 0) -ELF_RELOC(R_WEBASSEMBLY_DATA, 1) -ELF_RELOC(R_WEBASSEMBLY_FUNCTION, 2) diff --git a/include/llvm/Support/ELFRelocs/i386.def b/include/llvm/Support/ELFRelocs/i386.def deleted file mode 100644 index 1d28cf595cd5..000000000000 --- a/include/llvm/Support/ELFRelocs/i386.def +++ /dev/null @@ -1,47 +0,0 @@ - -#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_GOT32X, 43) diff --git a/include/llvm/Support/ELFRelocs/x86_64.def b/include/llvm/Support/ELFRelocs/x86_64.def deleted file mode 100644 index 18fdcf9472dc..000000000000 --- a/include/llvm/Support/ELFRelocs/x86_64.def +++ /dev/null @@ -1,45 +0,0 @@ - -#ifndef ELF_RELOC -#error "ELF_RELOC must be defined" -#endif - -ELF_RELOC(R_X86_64_NONE, 0) -ELF_RELOC(R_X86_64_64, 1) -ELF_RELOC(R_X86_64_PC32, 2) -ELF_RELOC(R_X86_64_GOT32, 3) -ELF_RELOC(R_X86_64_PLT32, 4) -ELF_RELOC(R_X86_64_COPY, 5) -ELF_RELOC(R_X86_64_GLOB_DAT, 6) -ELF_RELOC(R_X86_64_JUMP_SLOT, 7) -ELF_RELOC(R_X86_64_RELATIVE, 8) -ELF_RELOC(R_X86_64_GOTPCREL, 9) -ELF_RELOC(R_X86_64_32, 10) -ELF_RELOC(R_X86_64_32S, 11) -ELF_RELOC(R_X86_64_16, 12) -ELF_RELOC(R_X86_64_PC16, 13) -ELF_RELOC(R_X86_64_8, 14) -ELF_RELOC(R_X86_64_PC8, 15) -ELF_RELOC(R_X86_64_DTPMOD64, 16) -ELF_RELOC(R_X86_64_DTPOFF64, 17) -ELF_RELOC(R_X86_64_TPOFF64, 18) -ELF_RELOC(R_X86_64_TLSGD, 19) -ELF_RELOC(R_X86_64_TLSLD, 20) -ELF_RELOC(R_X86_64_DTPOFF32, 21) -ELF_RELOC(R_X86_64_GOTTPOFF, 22) -ELF_RELOC(R_X86_64_TPOFF32, 23) -ELF_RELOC(R_X86_64_PC64, 24) -ELF_RELOC(R_X86_64_GOTOFF64, 25) -ELF_RELOC(R_X86_64_GOTPC32, 26) -ELF_RELOC(R_X86_64_GOT64, 27) -ELF_RELOC(R_X86_64_GOTPCREL64, 28) -ELF_RELOC(R_X86_64_GOTPC64, 29) -ELF_RELOC(R_X86_64_GOTPLT64, 30) -ELF_RELOC(R_X86_64_PLTOFF64, 31) -ELF_RELOC(R_X86_64_SIZE32, 32) -ELF_RELOC(R_X86_64_SIZE64, 33) -ELF_RELOC(R_X86_64_GOTPC32_TLSDESC, 34) -ELF_RELOC(R_X86_64_TLSDESC_CALL, 35) -ELF_RELOC(R_X86_64_TLSDESC, 36) -ELF_RELOC(R_X86_64_IRELATIVE, 37) -ELF_RELOC(R_X86_64_GOTPCRELX, 41) -ELF_RELOC(R_X86_64_REX_GOTPCRELX, 42) |