Lines Matching full:elf
1 //===-- X86ELFObjectWriter.cpp - X86 ELF Writer ---------------------------===//
15 #include "llvm/Support/ELF.h"
36 /*HasRelocationAddend*/ EMachine != ELF::EM_386) {} in X86ELFObjectWriter()
48 if (getEMachine() == ELF::EM_X86_64) { in GetRelocType()
53 case FK_Data_8: Type = ELF::R_X86_64_PC64; break; in GetRelocType()
54 case FK_Data_4: Type = ELF::R_X86_64_PC32; break; in GetRelocType()
55 case FK_Data_2: Type = ELF::R_X86_64_PC16; break; in GetRelocType()
56 case FK_Data_1: Type = ELF::R_X86_64_PC8; break; in GetRelocType()
60 Type = ELF::R_X86_64_PC64; in GetRelocType()
70 Type = ELF::R_X86_64_PC32; in GetRelocType()
73 Type = ELF::R_X86_64_PLT32; in GetRelocType()
76 Type = ELF::R_X86_64_GOTPCREL; in GetRelocType()
79 Type = ELF::R_X86_64_GOTTPOFF; in GetRelocType()
82 Type = ELF::R_X86_64_TLSGD; in GetRelocType()
85 Type = ELF::R_X86_64_TLSLD; in GetRelocType()
91 Type = ELF::R_X86_64_PC16; in GetRelocType()
95 Type = ELF::R_X86_64_PC8; in GetRelocType()
102 Type = ELF::R_X86_64_GOTPC64; in GetRelocType()
105 Type = ELF::R_X86_64_GOTPC32; in GetRelocType()
112 Type = ELF::R_X86_64_64; in GetRelocType()
115 Type = ELF::R_X86_64_GOT64; in GetRelocType()
118 Type = ELF::R_X86_64_GOTOFF64; in GetRelocType()
121 Type = ELF::R_X86_64_TPOFF64; in GetRelocType()
124 Type = ELF::R_X86_64_DTPOFF64; in GetRelocType()
133 Type = ELF::R_X86_64_32S; in GetRelocType()
136 Type = ELF::R_X86_64_GOT32; in GetRelocType()
139 Type = ELF::R_X86_64_GOTPCREL; in GetRelocType()
142 Type = ELF::R_X86_64_TPOFF32; in GetRelocType()
145 Type = ELF::R_X86_64_DTPOFF32; in GetRelocType()
150 Type = ELF::R_X86_64_32; in GetRelocType()
152 case FK_Data_2: Type = ELF::R_X86_64_16; break; in GetRelocType()
154 case FK_Data_1: Type = ELF::R_X86_64_8; break; in GetRelocType()
157 } else if (getEMachine() == ELF::EM_386) { in GetRelocType()
163 Type = ELF::R_386_GOTPC; in GetRelocType()
172 Type = ELF::R_386_PC8; in GetRelocType()
183 Type = ELF::R_386_PC16; in GetRelocType()
195 Type = ELF::R_386_PC32; in GetRelocType()
198 Type = ELF::R_386_PLT32; in GetRelocType()
208 Type = ELF::R_386_GOTPC; in GetRelocType()
220 Type = ELF::R_386_32; in GetRelocType()
223 Type = ELF::R_386_GOT32; in GetRelocType()
226 Type = ELF::R_386_GOTOFF; in GetRelocType()
229 Type = ELF::R_386_TLS_GD; in GetRelocType()
232 Type = ELF::R_386_TLS_LE_32; in GetRelocType()
235 Type = ELF::R_386_TLS_IE; in GetRelocType()
238 Type = ELF::R_386_TLS_LE; in GetRelocType()
241 Type = ELF::R_386_TLS_GOTIE; in GetRelocType()
244 Type = ELF::R_386_TLS_LDM; in GetRelocType()
247 Type = ELF::R_386_TLS_LDO_32; in GetRelocType()
250 Type = ELF::R_386_TLS_IE_32; in GetRelocType()
254 case FK_Data_2: Type = ELF::R_386_16; break; in GetRelocType()
256 case FK_Data_1: Type = ELF::R_386_8; break; in GetRelocType()
260 llvm_unreachable("Unsupported ELF machine type."); in GetRelocType()