Home | History | Annotate | Download | only in RuntimeDyld

Lines Matching refs:ELF

10 // Implementation of ELF support for the MC-JIT runtime dynamic linker.
21 #include "llvm/Support/ELF.h"
23 #include "llvm/Object/ELF.h"
158 if (Ident.first == ELF::ELFCLASS32 && Ident.second == ELF::ELFDATA2LSB) {
163 else if (Ident.first == ELF::ELFCLASS32 && Ident.second == ELF::ELFDATA2MSB) {
168 else if (Ident.first == ELF::ELFCLASS64 && Ident.second == ELF::ELFDATA2MSB) {
173 else if (Ident.first == ELF::ELFCLASS64 && Ident.second == ELF::ELFDATA2LSB) {
179 llvm_unreachable("Unexpected ELF format");
203 case ELF::R_X86_64_64: {
208 case ELF::R_X86_64_32:
209 case ELF::R_X86_64_32S: {
212 assert((Type == ELF::R_X86_64_32 && !(Value & 0xFFFFFFFF00000000ULL)) ||
213 (Type == ELF::R_X86_64_32S &&
220 case ELF::R_X86_64_PC32: {
237 case ELF::R_386_32: {
243 case ELF::R_386_PC32: {
251 // only ones currently used by the LLVM ELF object writer
278 case ELF::R_ARM_ABS32 :
284 case ELF::R_ARM_MOVW_ABS_NC :
292 case ELF::R_ARM_MOVT_ABS :
299 case ELF::R_ARM_PC24 : // Fall through.
300 case ELF::R_ARM_CALL : // Fall through.
301 case ELF::R_ARM_JUMP24 :
366 // TODO: Now ELF SymbolRef::ST_Debug = STT_SECTION, it's not obviously
393 (RelType == ELF::R_ARM_PC24 ||
394 RelType == ELF::R_ARM_CALL ||
395 RelType == ELF::R_ARM_JUMP24)) {
414 StubTargetAddr - Section.Address, ELF::R_ARM_ABS32);
424 StringRef Magic = InputBuffer->getBuffer().slice(0, ELF::EI_NIDENT);
425 return (memcmp(Magic.data(), ELF::ElfMagic, strlen(ELF::ElfMagic))) == 0;