| /freebsd-9-stable/contrib/llvm/tools/llvm-readobj/ |
| D | ELFDumper.cpp | 29 using namespace ELF; 111 { "None", ELF::ELFCLASSNONE }, 112 { "32-bit", ELF::ELFCLASS32 }, 113 { "64-bit", ELF::ELFCLASS64 }, 117 { "None", ELF::ELFDATANONE }, 118 { "LittleEndian", ELF::ELFDATA2LSB }, 119 { "BigEndian", ELF::ELFDATA2MSB }, 123 { "None", ELF::ET_NONE }, 124 { "Relocatable", ELF::ET_REL }, 125 { "Executable", ELF::ET_EXEC }, [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Target/AArch64/MCTargetDesc/ |
| D | AArch64ELFObjectWriter.cpp | 39 : MCELFObjectTargetWriter(/*Is64Bit*/ true, OSABI, ELF::EM_AARCH64, in AArch64ELFObjectWriter() 57 return ELF::R_AARCH64_PREL64; in GetRelocType() 59 return ELF::R_AARCH64_PREL32; in GetRelocType() 61 return ELF::R_AARCH64_PREL16; in GetRelocType() 63 Type = ELF::R_AARCH64_LD_PREL_LO19; in GetRelocType() 66 Type = ELF::R_AARCH64_ADR_PREL_LO21; in GetRelocType() 69 Type = ELF::R_AARCH64_ADR_PREL_PG_HI21; in GetRelocType() 72 Type = ELF::R_AARCH64_ADR_GOT_PAGE; in GetRelocType() 75 Type = ELF::R_AARCH64_TSTBR14; in GetRelocType() 78 Type = ELF::R_AARCH64_CONDBR19; in GetRelocType() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| D | PPCELFObjectWriter.cpp | 46 Is64Bit ? ELF::EM_PPC64 : ELF::EM_PPC, in PPCELFObjectWriter() 67 Type = ELF::R_PPC_REL24; in getRelocTypeInner() 71 Type = ELF::R_PPC_REL14; in getRelocTypeInner() 77 Type = ELF::R_PPC_REL16; in getRelocTypeInner() 80 Type = ELF::R_PPC_REL16_LO; in getRelocTypeInner() 83 Type = ELF::R_PPC_REL16_HI; in getRelocTypeInner() 86 Type = ELF::R_PPC_REL16_HA; in getRelocTypeInner() 92 Type = ELF::R_PPC_REL32; in getRelocTypeInner() 96 Type = ELF::R_PPC64_REL64; in getRelocTypeInner() 103 Type = ELF::R_PPC_ADDR24; in getRelocTypeInner() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Target/Sparc/MCTargetDesc/ |
| D | SparcELFObjectWriter.cpp | 26 Is64Bit ? ELF::EM_SPARCV9 : ELF::EM_SPARC, in SparcELFObjectWriter() 52 return ELF::R_SPARC_DISP32; in GetRelocType() 59 case FK_Data_1: return ELF::R_SPARC_DISP8; in GetRelocType() 60 case FK_Data_2: return ELF::R_SPARC_DISP16; in GetRelocType() 61 case FK_Data_4: return ELF::R_SPARC_DISP32; in GetRelocType() 62 case FK_Data_8: return ELF::R_SPARC_DISP64; in GetRelocType() 63 case Sparc::fixup_sparc_call30: return ELF::R_SPARC_WDISP30; in GetRelocType() 64 case Sparc::fixup_sparc_br22: return ELF::R_SPARC_WDISP22; in GetRelocType() 65 case Sparc::fixup_sparc_br19: return ELF::R_SPARC_WDISP19; in GetRelocType() 66 case Sparc::fixup_sparc_pc22: return ELF::R_SPARC_PC22; in GetRelocType() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Target/X86/MCTargetDesc/ |
| D | X86ELFObjectWriter.cpp | 37 /*HasRelocationAddend*/ EMachine != ELF::EM_386) {} in X86ELFObjectWriter() 52 if (getEMachine() == ELF::EM_X86_64) { in GetRelocType() 57 case FK_Data_8: Type = ELF::R_X86_64_PC64; break; in GetRelocType() 58 case FK_Data_4: Type = ELF::R_X86_64_PC32; break; in GetRelocType() 59 case FK_Data_2: Type = ELF::R_X86_64_PC16; break; in GetRelocType() 63 Type = ELF::R_X86_64_PC64; in GetRelocType() 73 Type = ELF::R_X86_64_PC32; in GetRelocType() 76 Type = ELF::R_X86_64_PLT32; in GetRelocType() 79 Type = ELF::R_X86_64_GOTPCREL; in GetRelocType() 82 Type = ELF::R_X86_64_GOTTPOFF; in GetRelocType() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Target/XCore/ |
| D | XCoreTargetObjectFile.cpp | 23 Ctx.getELFSection(".dp.data", ELF::SHT_PROGBITS, in Initialize() 24 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 25 ELF::XCORE_SHF_DP_SECTION, in Initialize() 28 Ctx.getELFSection(".dp.bss", ELF::SHT_NOBITS, in Initialize() 29 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 30 ELF::XCORE_SHF_DP_SECTION, in Initialize() 34 Ctx.getELFSection(".cp.rodata.cst4", ELF::SHT_PROGBITS, in Initialize() 35 ELF::SHF_ALLOC | ELF::SHF_MERGE | in Initialize() 36 ELF::XCORE_SHF_CP_SECTION, in Initialize() 39 Ctx.getELFSection(".cp.rodata.cst8", ELF::SHT_PROGBITS, in Initialize() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Target/Mips/MCTargetDesc/ |
| D | MipsELFObjectWriter.cpp | 57 : MCELFObjectTargetWriter(_is64Bit, OSABI, ELF::EM_MIPS, in MipsELFObjectWriter() 84 unsigned Type = (unsigned)ELF::R_MIPS_NONE; in GetRelocType() 91 Type = ELF::R_MIPS_32; in GetRelocType() 94 Type = ELF::R_MIPS_64; in GetRelocType() 98 Type = setRType((unsigned)ELF::R_MIPS_GPREL32, Type); in GetRelocType() 99 Type = setRType2((unsigned)ELF::R_MIPS_64, Type); in GetRelocType() 100 Type = setRType3((unsigned)ELF::R_MIPS_NONE, Type); in GetRelocType() 103 Type = ELF::R_MIPS_GPREL32; in GetRelocType() 106 Type = ELF::R_MIPS_GPREL16; in GetRelocType() 109 Type = ELF::R_MIPS_26; in GetRelocType() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/MC/ |
| D | MCELF.cpp | 23 assert(Binding == ELF::STB_LOCAL || Binding == ELF::STB_GLOBAL || in SetBinding() 24 Binding == ELF::STB_WEAK); in SetBinding() 31 assert(Binding == ELF::STB_LOCAL || Binding == ELF::STB_GLOBAL || in GetBinding() 32 Binding == ELF::STB_WEAK); in GetBinding() 37 assert(Type == ELF::STT_NOTYPE || Type == ELF::STT_OBJECT || in SetType() 38 Type == ELF::STT_FUNC || Type == ELF::STT_SECTION || in SetType() 39 Type == ELF::STT_COMMON || Type == ELF::STT_TLS || in SetType() 40 Type == ELF::STT_GNU_IFUNC); in SetType() 48 assert(Type == ELF::STT_NOTYPE || Type == ELF::STT_OBJECT || in GetType() 49 Type == ELF::STT_FUNC || Type == ELF::STT_SECTION || in GetType() [all …]
|
| D | MCSectionELF.cpp | 75 !(Flags & ELF::SHF_MERGE)) { in PrintSwitchToSection() 76 if (Flags & ELF::SHF_ALLOC) in PrintSwitchToSection() 78 if (Flags & ELF::SHF_EXECINSTR) in PrintSwitchToSection() 80 if (Flags & ELF::SHF_WRITE) in PrintSwitchToSection() 82 if (Flags & ELF::SHF_EXCLUDE) in PrintSwitchToSection() 84 if (Flags & ELF::SHF_TLS) in PrintSwitchToSection() 91 if (Flags & ELF::SHF_ALLOC) in PrintSwitchToSection() 93 if (Flags & ELF::SHF_EXCLUDE) in PrintSwitchToSection() 95 if (Flags & ELF::SHF_EXECINSTR) in PrintSwitchToSection() 97 if (Flags & ELF::SHF_GROUP) in PrintSwitchToSection() [all …]
|
| D | MCObjectFileInfo.cpp | 360 EHSectionType = ELF::SHT_PROGBITS; in InitELFMCObjectFileInfo() 361 EHSectionFlags = ELF::SHF_ALLOC; in InitELFMCObjectFileInfo() 364 EHSectionType = ELF::SHT_X86_64_UNWIND; in InitELFMCObjectFileInfo() 366 EHSectionFlags |= ELF::SHF_WRITE; in InitELFMCObjectFileInfo() 372 Ctx->getELFSection(".bss", ELF::SHT_NOBITS, in InitELFMCObjectFileInfo() 373 ELF::SHF_WRITE | ELF::SHF_ALLOC, in InitELFMCObjectFileInfo() 377 Ctx->getELFSection(".text", ELF::SHT_PROGBITS, in InitELFMCObjectFileInfo() 378 ELF::SHF_EXECINSTR | in InitELFMCObjectFileInfo() 379 ELF::SHF_ALLOC, in InitELFMCObjectFileInfo() 383 Ctx->getELFSection(".data", ELF::SHT_PROGBITS, in InitELFMCObjectFileInfo() [all …]
|
| D | ELFObjectWriter.cpp | 387 Write8(is64Bit() ? ELF::ELFCLASS64 : ELF::ELFCLASS32); // e_ident[EI_CLASS] in WriteHeader() 390 Write8(isLittleEndian() ? ELF::ELFDATA2LSB : ELF::ELFDATA2MSB); in WriteHeader() 392 Write8(ELF::EV_CURRENT); // e_ident[EI_VERSION] in WriteHeader() 397 WriteZeros(ELF::EI_NIDENT - ELF::EI_PAD); in WriteHeader() 399 Write16(ELF::ET_REL); // e_type in WriteHeader() 403 Write32(ELF::EV_CURRENT); // e_version in WriteHeader() 406 WriteWord(SectionDataSize + (is64Bit() ? sizeof(ELF::Elf64_Ehdr) : in WriteHeader() 407 sizeof(ELF::Elf32_Ehdr))); // e_shoff = sec hdr table off in bytes in WriteHeader() 413 Write16(is64Bit() ? sizeof(ELF::Elf64_Ehdr) : sizeof(ELF::Elf32_Ehdr)); in WriteHeader() 419 Write16(is64Bit() ? sizeof(ELF::Elf64_Shdr) : sizeof(ELF::Elf32_Shdr)); in WriteHeader() [all …]
|
| D | MCELFStreamer.cpp | 45 ELF::SHT_PROGBITS, in SetSectionData() 46 ELF::SHF_WRITE | ELF::SHF_ALLOC, in SetSectionData() 53 ELF::SHT_PROGBITS, in SetSectionText() 54 ELF::SHF_EXECINSTR | ELF::SHF_ALLOC, in SetSectionText() 61 ELF::SHT_NOBITS, in SetSectionBss() 62 ELF::SHF_WRITE | ELF::SHF_ALLOC, in SetSectionBss() 91 if (Section.getFlags() & ELF::SHF_TLS) in EmitLabel() 92 MCELF::SetType(SD, ELF::STT_TLS); in EmitLabel() 143 unsigned TypeOrdering[] = {ELF::STT_NOTYPE, ELF::STT_OBJECT, ELF::STT_FUNC, in CombineSymbolTypes() 144 ELF::STT_GNU_IFUNC, ELF::STT_TLS}; in CombineSymbolTypes() [all …]
|
| /freebsd-9-stable/contrib/llvm/include/llvm/MC/ |
| D | MCELFSymbolFlags.h | 31 ELF_STB_Local = (ELF::STB_LOCAL << ELF_STB_Shift), 32 ELF_STB_Global = (ELF::STB_GLOBAL << ELF_STB_Shift), 33 ELF_STB_Weak = (ELF::STB_WEAK << ELF_STB_Shift), 34 ELF_STB_Loproc = (ELF::STB_LOPROC << ELF_STB_Shift), 35 ELF_STB_Hiproc = (ELF::STB_HIPROC << ELF_STB_Shift), 37 ELF_STT_Notype = (ELF::STT_NOTYPE << ELF_STT_Shift), 38 ELF_STT_Object = (ELF::STT_OBJECT << ELF_STT_Shift), 39 ELF_STT_Func = (ELF::STT_FUNC << ELF_STT_Shift), 40 ELF_STT_Section = (ELF::STT_SECTION << ELF_STT_Shift), 41 ELF_STT_File = (ELF::STT_FILE << ELF_STT_Shift), [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/MC/MCParser/ |
| D | ELFAsmParser.cpp | 83 return ParseSectionSwitch(".data", ELF::SHT_PROGBITS, in ParseSectionDirectiveData() 84 ELF::SHF_WRITE |ELF::SHF_ALLOC, in ParseSectionDirectiveData() 88 return ParseSectionSwitch(".text", ELF::SHT_PROGBITS, in ParseSectionDirectiveText() 89 ELF::SHF_EXECINSTR | in ParseSectionDirectiveText() 90 ELF::SHF_ALLOC, SectionKind::getText()); in ParseSectionDirectiveText() 93 return ParseSectionSwitch(".bss", ELF::SHT_NOBITS, in ParseSectionDirectiveBSS() 94 ELF::SHF_WRITE | in ParseSectionDirectiveBSS() 95 ELF::SHF_ALLOC, SectionKind::getBSS()); in ParseSectionDirectiveBSS() 98 return ParseSectionSwitch(".rodata", ELF::SHT_PROGBITS, in ParseSectionDirectiveRoData() 99 ELF::SHF_ALLOC, in ParseSectionDirectiveRoData() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Target/ARM/MCTargetDesc/ |
| D | ARMELFObjectWriter.cpp | 50 ELF::EM_ARM, in ARMELFObjectWriter() 103 case ELF::R_ARM_ABS32: in ExplicitRelSym() 129 case ELF::R_ARM_ABS32: EmitThisSym = false; break; in ExplicitRelSym() 130 case ELF::R_ARM_PREL31: EmitThisSym = false; break; in ExplicitRelSym() 167 Type = ELF::R_ARM_REL32; in GetRelocTypeInner() 172 Type = ELF::R_ARM_TLS_IE32; in GetRelocTypeInner() 180 Type = ELF::R_ARM_PLT32; in GetRelocTypeInner() 183 Type = ELF::R_ARM_CALL; in GetRelocTypeInner() 190 Type = ELF::R_ARM_JUMP24; in GetRelocTypeInner() 194 Type = ELF::R_ARM_THM_JUMP24; in GetRelocTypeInner() [all …]
|
| /freebsd-9-stable/contrib/llvm/include/llvm/Object/ |
| D | ELFObjectFile.h | 247 case ELF::SHN_COMMON: in getSymbolFileOffset() 249 case ELF::SHN_UNDEF: in getSymbolFileOffset() 252 case ELF::SHN_ABS: in getSymbolFileOffset() 260 case ELF::STT_SECTION: in getSymbolFileOffset() 263 case ELF::STT_FUNC: in getSymbolFileOffset() 264 case ELF::STT_OBJECT: in getSymbolFileOffset() 265 case ELF::STT_NOTYPE: in getSymbolFileOffset() 280 case ELF::SHN_COMMON: in getSymbolAddress() 281 case ELF::SHN_UNDEF: in getSymbolAddress() 284 case ELF::SHN_ABS: in getSymbolAddress() [all …]
|
| D | RelocVisitor.h | 54 case llvm::ELF::R_X86_64_NONE: 56 case llvm::ELF::R_X86_64_64: 58 case llvm::ELF::R_X86_64_PC32: 60 case llvm::ELF::R_X86_64_32: 62 case llvm::ELF::R_X86_64_32S: 70 case llvm::ELF::R_386_NONE: 72 case llvm::ELF::R_386_32: 74 case llvm::ELF::R_386_PC32: 82 case llvm::ELF::R_PPC64_ADDR32: 84 case llvm::ELF::R_PPC64_ADDR64: [all …]
|
| D | ELF.h | 44 if (Object->getBufferSize() < ELF::EI_NIDENT) in getElfArchType() 45 return std::make_pair((uint8_t)ELF::ELFCLASSNONE,(uint8_t)ELF::ELFDATANONE); in getElfArchType() 46 return std::make_pair((uint8_t) Object->getBufferStart()[ELF::EI_CLASS], in getElfArchType() 47 (uint8_t) Object->getBufferStart()[ELF::EI_DATA]); in getElfArchType() 244 DenseMap<const Elf_Sym *, ELF::Elf64_Word> ExtendedSymbolTable; 321 return Header->e_machine == ELF::EM_MIPS && in isMips64EL() 322 Header->getFileClass() == ELF::ELFCLASS64 && in isMips64EL() 323 Header->getDataEncoding() == ELF::ELFDATA2LSB; in isMips64EL() 390 ELF::Elf64_Word getSymbolTableIndex(const Elf_Sym *symb) const; 434 if (vd->vd_version != ELF::VER_DEF_CURRENT) in LoadVersionDefs() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Target/SystemZ/MCTargetDesc/ |
| D | SystemZMCObjectWriter.cpp | 39 : MCELFObjectTargetWriter(/*Is64Bit=*/true, OSABI, ELF::EM_S390, in SystemZObjectWriter() 48 case FK_Data_1: return ELF::R_390_8; in getAbsoluteReloc() 49 case FK_Data_2: return ELF::R_390_16; in getAbsoluteReloc() 50 case FK_Data_4: return ELF::R_390_32; in getAbsoluteReloc() 51 case FK_Data_8: return ELF::R_390_64; in getAbsoluteReloc() 59 case FK_Data_2: return ELF::R_390_PC16; in getPCRelReloc() 60 case FK_Data_4: return ELF::R_390_PC32; in getPCRelReloc() 61 case FK_Data_8: return ELF::R_390_PC64; in getPCRelReloc() 62 case SystemZ::FK_390_PC16DBL: return ELF::R_390_PC16DBL; in getPCRelReloc() 63 case SystemZ::FK_390_PC32DBL: return ELF::R_390_PC32DBL; in getPCRelReloc() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| D | RuntimeDyldELF.cpp | 182 if (Buffer->getBufferSize() < ELF::EI_NIDENT) in createObjectImage() 185 (uint8_t)Buffer->getBufferStart()[ELF::EI_CLASS], in createObjectImage() 186 (uint8_t)Buffer->getBufferStart()[ELF::EI_DATA]); in createObjectImage() 189 if (Ident.first == ELF::ELFCLASS32 && Ident.second == ELF::ELFDATA2LSB) { in createObjectImage() 195 else if (Ident.first == ELF::ELFCLASS32 && Ident.second == ELF::ELFDATA2MSB) { in createObjectImage() 201 else if (Ident.first == ELF::ELFCLASS64 && Ident.second == ELF::ELFDATA2MSB) { in createObjectImage() 207 else if (Ident.first == ELF::ELFCLASS64 && Ident.second == ELF::ELFDATA2LSB) { in createObjectImage() 230 case ELF::R_X86_64_64: { in resolveX86_64Relocation() 237 case ELF::R_X86_64_32: in resolveX86_64Relocation() 238 case ELF::R_X86_64_32S: { in resolveX86_64Relocation() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Target/Mips/ |
| D | MipsTargetObjectFile.cpp | 32 getContext().getELFSection(".sdata", ELF::SHT_PROGBITS, in Initialize() 33 ELF::SHF_WRITE |ELF::SHF_ALLOC, in Initialize() 37 getContext().getELFSection(".sbss", ELF::SHT_NOBITS, in Initialize() 38 ELF::SHF_WRITE |ELF::SHF_ALLOC, in Initialize() 46 ELF::SHT_MIPS_OPTIONS, in Initialize() 47 ELF::SHF_ALLOC |ELF::SHF_MIPS_NOSTRIP, in Initialize() 52 ELF::SHT_MIPS_REGINFO, in Initialize() 53 ELF::SHF_ALLOC, in Initialize()
|
| /freebsd-9-stable/contrib/llvm/tools/llvm-objdump/ |
| D | ELFDump.cpp | 31 case ELF::PT_LOAD: in printProgramHeaders() 34 case ELF::PT_GNU_STACK: in printProgramHeaders() 37 case ELF::PT_GNU_EH_FRAME: in printProgramHeaders() 40 case ELF::PT_INTERP: in printProgramHeaders() 43 case ELF::PT_DYNAMIC: in printProgramHeaders() 46 case ELF::PT_PHDR: in printProgramHeaders() 49 case ELF::PT_TLS: in printProgramHeaders() 70 << ((pi->p_flags & ELF::PF_R) ? "r" : "-") in printProgramHeaders() 71 << ((pi->p_flags & ELF::PF_W) ? "w" : "-") in printProgramHeaders() 72 << ((pi->p_flags & ELF::PF_X) ? "x" : "-") in printProgramHeaders()
|
| /freebsd-9-stable/contrib/llvm/lib/CodeGen/ |
| D | TargetLoweringObjectFileImpl.cpp | 73 unsigned Flags = ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_GROUP; in emitPersonalityValue() 75 ELF::SHT_PROGBITS, in emitPersonalityValue() 160 return ELF::SHT_INIT_ARRAY; in getELFSectionType() 163 return ELF::SHT_FINI_ARRAY; in getELFSectionType() 166 return ELF::SHT_PREINIT_ARRAY; in getELFSectionType() 169 return ELF::SHT_NOBITS; in getELFSectionType() 171 return ELF::SHT_PROGBITS; in getELFSectionType() 180 Flags |= ELF::SHF_ALLOC; in getELFSectionFlags() 183 Flags |= ELF::SHF_EXECINSTR; in getELFSectionFlags() 186 Flags |= ELF::SHF_WRITE; in getELFSectionFlags() [all …]
|
| /freebsd-9-stable/contrib/llvm/patches/ |
| D | patch-r262261-llvm-r200112-sparc.diff | 3 [Sparc] Add support for sparc relocation types in ELF object file. 25 + ! CHECK-ELF: ] 36 case ELF::EM_PPC: 38 + case ELF::EM_SPARC: 39 + case ELF::EM_SPARC32PLUS: 46 case ELF::EM_S390: 48 + case ELF::EM_SPARCV9: 55 case ELF::EM_S390: 58 + case ELF::EM_SPARC: 59 + case ELF::EM_SPARC32PLUS: [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Object/ |
| D | ELFObjectFile.cpp | 28 if (Ident.first == ELF::ELFCLASS32 && Ident.second == ELF::ELFDATA2LSB) in createELFObjectFile() 38 else if (Ident.first == ELF::ELFCLASS32 && Ident.second == ELF::ELFDATA2MSB) in createELFObjectFile() 48 else if (Ident.first == ELF::ELFCLASS64 && Ident.second == ELF::ELFDATA2MSB) in createELFObjectFile() 58 else if (Ident.first == ELF::ELFCLASS64 && Ident.second == ELF::ELFDATA2LSB) { in createELFObjectFile()
|