• Home
  • Raw
  • Download

Lines Matching full:elf

1 //===-- X86ELFObjectWriter.cpp - X86 ELF Writer ---------------------------===//
17 #include "llvm/Support/ELF.h"
40 (EMachine != ELF::EM_386) && in X86ELFObjectWriter()
41 (EMachine != ELF::EM_IAMCU)) {} in X86ELFObjectWriter()
101 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; in getRelocType64()
103 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; in getRelocType64()
105 return ELF::R_X86_64_32S; in getRelocType64()
107 return IsPCRel ? ELF::R_X86_64_PC16 : ELF::R_X86_64_16; in getRelocType64()
109 return IsPCRel ? ELF::R_X86_64_PC8 : ELF::R_X86_64_8; in getRelocType64()
114 return IsPCRel ? ELF::R_X86_64_GOTPC64 : ELF::R_X86_64_GOT64; in getRelocType64()
116 return IsPCRel ? ELF::R_X86_64_GOTPC32 : ELF::R_X86_64_GOT32; in getRelocType64()
125 return ELF::R_X86_64_GOTOFF64; in getRelocType64()
130 return ELF::R_X86_64_TPOFF64; in getRelocType64()
132 return ELF::R_X86_64_TPOFF32; in getRelocType64()
142 return ELF::R_X86_64_DTPOFF64; in getRelocType64()
144 return ELF::R_X86_64_DTPOFF32; in getRelocType64()
154 return ELF::R_X86_64_SIZE64; in getRelocType64()
156 return ELF::R_X86_64_SIZE32; in getRelocType64()
163 return ELF::R_X86_64_TLSDESC_CALL; in getRelocType64()
165 return ELF::R_X86_64_GOTPC32_TLSDESC; in getRelocType64()
168 return ELF::R_X86_64_TLSGD; in getRelocType64()
171 return ELF::R_X86_64_GOTTPOFF; in getRelocType64()
174 return ELF::R_X86_64_TLSLD; in getRelocType64()
177 return ELF::R_X86_64_PLT32; in getRelocType64()
184 return ELF::R_X86_64_GOTPCREL; in getRelocType64()
187 return ELF::R_X86_64_GOTPCREL; in getRelocType64()
189 return ELF::R_X86_64_GOTPCRELX; in getRelocType64()
192 return ELF::R_X86_64_REX_GOTPCRELX; in getRelocType64()
224 return IsPCRel ? ELF::R_386_PC32 : ELF::R_386_32; in getRelocType32()
226 return IsPCRel ? ELF::R_386_PC16 : ELF::R_386_16; in getRelocType32()
228 return IsPCRel ? ELF::R_386_PC8 : ELF::R_386_8; in getRelocType32()
233 return ELF::R_386_GOTPC; in getRelocType32()
237 return ELF::R_386_GOT32; in getRelocType32()
239 return Kind == X86::reloc_signed_4byte_relax ? ELF::R_386_GOT32X in getRelocType32()
240 : ELF::R_386_GOT32; in getRelocType32()
244 return ELF::R_386_GOTOFF; in getRelocType32()
248 return ELF::R_386_TLS_LE_32; in getRelocType32()
252 return ELF::R_386_TLS_LDO_32; in getRelocType32()
256 return ELF::R_386_TLS_GD; in getRelocType32()
260 return ELF::R_386_TLS_IE_32; in getRelocType32()
263 return ELF::R_386_PLT32; in getRelocType32()
267 return ELF::R_386_TLS_IE; in getRelocType32()
271 return ELF::R_386_TLS_LE; in getRelocType32()
275 return ELF::R_386_TLS_GOTIE; in getRelocType32()
279 return ELF::R_386_TLS_LDM; in getRelocType32()
289 if (getEMachine() == ELF::EM_X86_64) in getRelocType()
292 assert((getEMachine() == ELF::EM_386 || getEMachine() == ELF::EM_IAMCU) && in getRelocType()
293 "Unsupported ELF machine type."); in getRelocType()