Lines Matching full:elf

1 //===-- X86ELFObjectWriter.cpp - X86 ELF Writer ---------------------------===//
15 #include "llvm/Support/ELF.h"
38 (EMachine != ELF::EM_386) && in X86ELFObjectWriter()
39 (EMachine != ELF::EM_IAMCU)) {} in X86ELFObjectWriter()
88 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; in getRelocType64()
90 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; in getRelocType64()
92 return ELF::R_X86_64_32S; in getRelocType64()
94 return IsPCRel ? ELF::R_X86_64_PC16 : ELF::R_X86_64_16; in getRelocType64()
96 return IsPCRel ? ELF::R_X86_64_PC8 : ELF::R_X86_64_8; in getRelocType64()
101 return IsPCRel ? ELF::R_X86_64_GOTPC64 : ELF::R_X86_64_GOT64; in getRelocType64()
103 return IsPCRel ? ELF::R_X86_64_GOTPC32 : ELF::R_X86_64_GOT32; in getRelocType64()
112 return ELF::R_X86_64_GOTOFF64; in getRelocType64()
117 return ELF::R_X86_64_TPOFF64; in getRelocType64()
119 return ELF::R_X86_64_TPOFF32; in getRelocType64()
129 return ELF::R_X86_64_DTPOFF64; in getRelocType64()
131 return ELF::R_X86_64_DTPOFF32; in getRelocType64()
141 return ELF::R_X86_64_SIZE64; in getRelocType64()
143 return ELF::R_X86_64_SIZE32; in getRelocType64()
151 return ELF::R_X86_64_TLSGD; in getRelocType64()
154 return ELF::R_X86_64_GOTTPOFF; in getRelocType64()
157 return ELF::R_X86_64_TLSLD; in getRelocType64()
160 return ELF::R_X86_64_PLT32; in getRelocType64()
163 return ELF::R_X86_64_GOTPCREL; in getRelocType64()
192 return IsPCRel ? ELF::R_386_PC32 : ELF::R_386_32; in getRelocType32()
194 return IsPCRel ? ELF::R_386_PC16 : ELF::R_386_16; in getRelocType32()
196 return IsPCRel ? ELF::R_386_PC8 : ELF::R_386_8; in getRelocType32()
200 return IsPCRel ? ELF::R_386_GOTPC : ELF::R_386_GOT32; in getRelocType32()
204 return ELF::R_386_GOTOFF; in getRelocType32()
208 return ELF::R_386_TLS_LE_32; in getRelocType32()
212 return ELF::R_386_TLS_LDO_32; in getRelocType32()
216 return ELF::R_386_TLS_GD; in getRelocType32()
220 return ELF::R_386_TLS_IE_32; in getRelocType32()
223 return ELF::R_386_PLT32; in getRelocType32()
227 return ELF::R_386_TLS_IE; in getRelocType32()
231 return ELF::R_386_TLS_LE; in getRelocType32()
235 return ELF::R_386_TLS_GOTIE; in getRelocType32()
239 return ELF::R_386_TLS_LDM; in getRelocType32()
248 if (getEMachine() == ELF::EM_X86_64) in GetRelocType()
251 assert((getEMachine() == ELF::EM_386 || getEMachine() == ELF::EM_IAMCU) && in GetRelocType()
252 "Unsupported ELF machine type."); in GetRelocType()