Lines Matching refs:ELF
1 //===-- X86ELFObjectWriter.cpp - X86 ELF Writer ---------------------------===//
15 #include "llvm/Support/ELF.h"
37 /*HasRelocationAddend*/ EMachine != ELF::EM_386) {}
52 if (getEMachine() == ELF::EM_X86_64) {
57 case FK_Data_8: Type = ELF::R_X86_64_PC64; break;
58 case FK_Data_4: Type = ELF::R_X86_64_PC32; break;
59 case FK_Data_2: Type = ELF::R_X86_64_PC16; break;
63 Type = ELF::R_X86_64_PC64;
73 Type = ELF::R_X86_64_PC32;
76 Type = ELF::R_X86_64_PLT32;
79 Type = ELF::R_X86_64_GOTPCREL;
82 Type = ELF::R_X86_64_GOTTPOFF;
85 Type = ELF::R_X86_64_TLSGD;
88 Type = ELF::R_X86_64_TLSLD;
94 Type = ELF::R_X86_64_PC16;
98 Type = ELF::R_X86_64_PC8;
104 case FK_Data_8: Type = ELF::R_X86_64_64; break;
110 Type = ELF::R_X86_64_32S;
113 Type = ELF::R_X86_64_GOT32;
116 Type = ELF::R_X86_64_GOTPCREL;
119 Type = ELF::R_X86_64_TPOFF32;
122 Type = ELF::R_X86_64_DTPOFF32;
127 Type = ELF::R_X86_64_32;
129 case FK_Data_2: Type = ELF::R_X86_64_16; break;
131 case FK_Data_1: Type = ELF::R_X86_64_8; break;
134 } else if (getEMachine() == ELF::EM_386) {
140 Type = ELF::R_386_GOTPC;
150 Type = ELF::R_386_PC32;
153 Type = ELF::R_386_PLT32;
163 Type = ELF::R_386_GOTPC;
175 Type = ELF::R_386_32;
178 Type = ELF::R_386_GOT32;
181 Type = ELF::R_386_GOTOFF;
184 Type = ELF::R_386_TLS_GD;
187 Type = ELF::R_386_TLS_LE_32;
190 Type = ELF::R_386_TLS_IE;
193 Type = ELF::R_386_TLS_LE;
196 Type = ELF::R_386_TLS_GOTIE;
199 Type = ELF::R_386_TLS_LDM;
202 Type = ELF::R_386_TLS_LDO_32;
205 Type = ELF::R_386_TLS_IE_32;
209 case FK_Data_2: Type = ELF::R_386_16; break;
211 case FK_Data_1: Type = ELF::R_386_8; break;
215 llvm_unreachable("Unsupported ELF machine type.");