/external/llvm/test/Object/ |
D | readobj-shared-object.test | 3 RUN: | FileCheck %s -check-prefix ELF 10 RUN: | FileCheck %s -check-prefix ELF 25 ELF: Sections [ 26 ELF: Section { 27 ELF: Name: (0) 28 ELF: Type: SHT_NULL 29 ELF: Flags [ (0x0) 30 ELF: ] 31 ELF: } 32 ELF: Section { [all …]
|
D | obj2yaml.test | 3 RUN: obj2yaml %p/Inputs/trivial-object-test.elf-mipsel | FileCheck %s --check-prefix ELF-MIPSEL 4 RUN: obj2yaml %p/Inputs/trivial-object-test.elf-mips64el | FileCheck %s --check-prefix ELF-MIPS64EL 5 RUN: obj2yaml %p/Inputs/trivial-object-test.elf-x86-64 | FileCheck %s --check-prefix ELF-X86-64 7 RUN: | FileCheck %s --check-prefix ELF-X86-64-UNWIND 191 ELF-MIPSEL: FileHeader: 192 ELF-MIPSEL-NEXT: Class: ELFCLASS32 193 ELF-MIPSEL-NEXT: Data: ELFDATA2LSB 194 ELF-MIPSEL-NEXT: OSABI: ELFOSABI_GNU 195 ELF-MIPSEL-NEXT: Type: ET_REL 196 ELF-MIPSEL-NEXT: Machine: EM_MIPS [all …]
|
D | objdump-relocations.test | 6 RUN: | FileCheck %s -check-prefix ELF-i386 8 RUN: | FileCheck %s -check-prefix ELF-x86-64 10 RUN: | FileCheck %s -check-prefix ELF-hexagon 12 RUN: | FileCheck %s -check-prefix ELF-MIPS64EL 14 RUN: | FileCheck %s -check-prefix ELF-MIPSEL 17 RUN: | FileCheck %s -check-prefix ELF-complex-x86-64 29 ELF-i386: .text 30 ELF-i386: R_386_32 .rodata.str1.1 31 ELF-i386: R_386_PC32 puts 32 ELF-i386: R_386_PC32 SomeOtherFunction [all …]
|
D | readobj-elf-versioning.test | 2 RUN: | FileCheck %s -check-prefix ELF 6 RUN: | FileCheck %s -check-prefix ELF 10 ELF: DynamicSymbols [ 11 ELF: Symbol { 12 ELF: Name: foo@@VER2 13 ELF: Binding: Global 14 ELF: Type: Function 15 ELF: Section: .text 16 ELF: } 17 ELF: Symbol { [all …]
|
D | nm-shared-object.test | 2 RUN: | FileCheck %s -check-prefix ELF-32 4 ELF-32-NOT: U 5 ELF-32: 000012c8 A __bss_start 6 ELF-32: 000012c8 A _edata 7 ELF-32: 000012cc A _end 8 ELF-32: 000012c8 B common_sym 9 ELF-32: 000012c4 D defined_sym 10 ELF-32: 000001f0 T global_func 11 ELF-32: 00000000 D tls_sym 14 RUN: | FileCheck %s -check-prefix ELF-64 [all …]
|
/external/llvm/test/tools/llvm-readobj/ |
D | reloc-types.test | 4 // Todo: ELF-PPC, ELF-HEXAGON 6 …lvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-i386 | FileCheck %s -check-prefix ELF-32 7 …lvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-x86_64 | FileCheck %s -check-prefix ELF-64 8 …eadobj -r -expand-relocs %p/Inputs/relocs.obj.elf-aarch64 | FileCheck %s -check-prefix ELF-AARCH64 9 …vm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-arm | FileCheck %s -check-prefix ELF-ARM 10 …m-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-mips | FileCheck %s -check-prefix ELF-MIPS 11 …adobj -r -expand-relocs %p/Inputs/relocs.obj.elf-mips64el | FileCheck %s -check-prefix ELF-MIPS64EL 12 …-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-ppc64 | FileCheck %s -check-prefix ELF-PPC64 20 ELF-32: Type: R_386_NONE (0) 21 ELF-32: Type: R_386_32 (1) [all …]
|
D | program-headers.test | 2 RUN: | FileCheck %s -check-prefix ELF-I386 4 RUN: | FileCheck %s -check-prefix ELF-X86-64 6 RUN: | FileCheck %s -check-prefix ELF-MIPS 8 RUN: | FileCheck %s -check-prefix ELF-MIPS64 10 ELF-I386: ProgramHeaders [ 11 ELF-I386-NEXT: ProgramHeader { 12 ELF-I386-NEXT: Type: PT_LOAD (0x1) 13 ELF-I386-NEXT: Offset: 0x0 14 ELF-I386-NEXT: VirtualAddress: 0x8048000 15 ELF-I386-NEXT: PhysicalAddress: 0x8048000 [all …]
|
D | dynamic.test | 3 RUN: | FileCheck %s -check-prefix ELF-MIPS 5 ELF-MIPS: Format: ELF32-mips 6 ELF-MIPS: Arch: mipsel 7 ELF-MIPS: AddressSize: 32bit 8 ELF-MIPS: LoadName: 9 ELF-MIPS: DynamicSection [ (23 entries) 10 ELF-MIPS: Tag Type Name/Value 11 ELF-MIPS: 0x00000001 NEEDED SharedLibrary (libc.so.6) 12 ELF-MIPS: 0x0000000C INIT 0x528 13 ELF-MIPS: 0x0000000D FINI 0x860 [all …]
|
D | symbols.test | 4 RUN: | FileCheck %s -check-prefix ELF 43 ELF: Symbols [ 44 ELF-NEXT: Symbol { 45 ELF-NEXT: Name: (0) 46 ELF-NEXT: Value: 0x0 47 ELF-NEXT: Size: 0 48 ELF-NEXT: Binding: Local (0x0) 49 ELF-NEXT: Type: None (0x0) 50 ELF-NEXT: Other: 0 51 ELF-NEXT: Section: Undefined (0x0) [all …]
|
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCELFObjectWriter.cpp | 38 Is64Bit ? ELF::EM_PPC64 : ELF::EM_PPC, in PPCELFObjectWriter() 85 Type = ELF::R_PPC_REL24; in GetRelocType() 88 Type = ELF::R_PPC_PLTREL24; in GetRelocType() 91 Type = ELF::R_PPC_LOCAL24PC; in GetRelocType() 97 Type = ELF::R_PPC_REL14; in GetRelocType() 103 Type = ELF::R_PPC_REL16; in GetRelocType() 106 Type = ELF::R_PPC_REL16_LO; in GetRelocType() 109 Type = ELF::R_PPC_REL16_HI; in GetRelocType() 112 Type = ELF::R_PPC_REL16_HA; in GetRelocType() 118 Type = ELF::R_PPC_REL32; in GetRelocType() [all …]
|
/external/llvm/tools/llvm-readobj/ |
D | ELFDumper.cpp | 33 using namespace ELF; 174 { "None", ELF::ELFCLASSNONE }, 175 { "32-bit", ELF::ELFCLASS32 }, 176 { "64-bit", ELF::ELFCLASS64 }, 180 { "None", ELF::ELFDATANONE }, 181 { "LittleEndian", ELF::ELFDATA2LSB }, 182 { "BigEndian", ELF::ELFDATA2MSB }, 186 { "None", ELF::ET_NONE }, 187 { "Relocatable", ELF::ET_REL }, 188 { "Executable", ELF::ET_EXEC }, [all …]
|
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
D | AArch64ELFObjectWriter.cpp | 41 : MCELFObjectTargetWriter(/*Is64Bit*/ true, OSABI, ELF::EM_AARCH64, in AArch64ELFObjectWriter() 65 return ELF::R_AARCH64_PREL16; in GetRelocType() 67 return ELF::R_AARCH64_PREL32; in GetRelocType() 69 return ELF::R_AARCH64_PREL64; in GetRelocType() 72 return ELF::R_AARCH64_ADR_PREL_LO21; in GetRelocType() 75 return ELF::R_AARCH64_ADR_PREL_PG_HI21; in GetRelocType() 77 return ELF::R_AARCH64_ADR_GOT_PAGE; in GetRelocType() 79 return ELF::R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21; in GetRelocType() 81 return ELF::R_AARCH64_TLSDESC_ADR_PAGE21; in GetRelocType() 84 return ELF::R_AARCH64_JUMP26; in GetRelocType() [all …]
|
/external/llvm/lib/Target/Sparc/MCTargetDesc/ |
D | SparcELFObjectWriter.cpp | 26 Is64Bit ? ELF::EM_SPARCV9 : ELF::EM_SPARC, in SparcELFObjectWriter() 43 return ELF::R_SPARC_DISP32; in GetRelocType() 50 case FK_Data_1: return ELF::R_SPARC_DISP8; in GetRelocType() 51 case FK_Data_2: return ELF::R_SPARC_DISP16; in GetRelocType() 52 case FK_Data_4: return ELF::R_SPARC_DISP32; in GetRelocType() 53 case FK_Data_8: return ELF::R_SPARC_DISP64; in GetRelocType() 54 case Sparc::fixup_sparc_call30: return ELF::R_SPARC_WDISP30; in GetRelocType() 55 case Sparc::fixup_sparc_br22: return ELF::R_SPARC_WDISP22; in GetRelocType() 56 case Sparc::fixup_sparc_br19: return ELF::R_SPARC_WDISP19; in GetRelocType() 57 case Sparc::fixup_sparc_pc22: return ELF::R_SPARC_PC22; in GetRelocType() [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreTargetObjectFile.cpp | 24 BSSSection = Ctx.getELFSection(".dp.bss", ELF::SHT_NOBITS, in Initialize() 25 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 26 ELF::XCORE_SHF_DP_SECTION); in Initialize() 27 BSSSectionLarge = Ctx.getELFSection(".dp.bss.large", ELF::SHT_NOBITS, in Initialize() 28 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 29 ELF::XCORE_SHF_DP_SECTION); in Initialize() 30 DataSection = Ctx.getELFSection(".dp.data", ELF::SHT_PROGBITS, in Initialize() 31 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 32 ELF::XCORE_SHF_DP_SECTION); in Initialize() 33 DataSectionLarge = Ctx.getELFSection(".dp.data.large", ELF::SHT_PROGBITS, in Initialize() [all …]
|
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
D | MipsELFObjectWriter.cpp | 58 : MCELFObjectTargetWriter(_is64Bit, OSABI, ELF::EM_MIPS, in MipsELFObjectWriter() 68 unsigned Type = (unsigned)ELF::R_MIPS_NONE; in GetRelocType() 76 Type = ELF::R_MIPS_32; in GetRelocType() 80 Type = ELF::R_MIPS_64; in GetRelocType() 84 Type = setRType((unsigned)ELF::R_MIPS_GPREL32, Type); in GetRelocType() 85 Type = setRType2((unsigned)ELF::R_MIPS_64, Type); in GetRelocType() 86 Type = setRType3((unsigned)ELF::R_MIPS_NONE, Type); in GetRelocType() 89 Type = ELF::R_MIPS_GPREL32; in GetRelocType() 92 Type = ELF::R_MIPS_GPREL16; in GetRelocType() 95 Type = ELF::R_MIPS_26; in GetRelocType() [all …]
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMELFObjectWriter.cpp | 47 ELF::EM_ARM, in ARMELFObjectWriter() 61 case ELF::R_ARM_PREL31: in needsRelocateWithSymbol() 62 case ELF::R_ARM_ABS32: in needsRelocateWithSymbol() 86 return ELF::R_ARM_NONE; in GetRelocTypeInner() 91 Type = ELF::R_ARM_REL32; in GetRelocTypeInner() 96 Type = ELF::R_ARM_TLS_IE32; in GetRelocTypeInner() 99 Type = ELF::R_ARM_GOT_PREL; in GetRelocTypeInner() 107 Type = ELF::R_ARM_CALL; in GetRelocTypeInner() 110 Type = ELF::R_ARM_TLS_CALL; in GetRelocTypeInner() 113 Type = ELF::R_ARM_CALL; in GetRelocTypeInner() [all …]
|
/external/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86ELFObjectWriter.cpp | 37 /*HasRelocationAddend*/ EMachine != ELF::EM_386) {} in X86ELFObjectWriter() 85 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; in getRelocType64() 87 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; in getRelocType64() 89 return ELF::R_X86_64_32S; in getRelocType64() 91 return IsPCRel ? ELF::R_X86_64_PC16 : ELF::R_X86_64_16; in getRelocType64() 93 return IsPCRel ? ELF::R_X86_64_PC8 : ELF::R_X86_64_8; in getRelocType64() 98 return IsPCRel ? ELF::R_X86_64_GOTPC64 : ELF::R_X86_64_GOT64; in getRelocType64() 100 return IsPCRel ? ELF::R_X86_64_GOTPC32 : ELF::R_X86_64_GOT32; in getRelocType64() 109 return ELF::R_X86_64_GOTOFF64; in getRelocType64() 114 return ELF::R_X86_64_TPOFF64; in getRelocType64() [all …]
|
/external/llvm/lib/MC/ |
D | MCELF.cpp | 23 assert(Binding == ELF::STB_LOCAL || Binding == ELF::STB_GLOBAL || in SetBinding() 24 Binding == ELF::STB_WEAK || Binding == ELF::STB_GNU_UNIQUE); in SetBinding() 31 assert(Binding == ELF::STB_LOCAL || Binding == ELF::STB_GLOBAL || in GetBinding() 32 Binding == ELF::STB_WEAK || Binding == ELF::STB_GNU_UNIQUE); 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 | 78 !(Flags & ELF::SHF_MERGE)) { in PrintSwitchToSection() 79 if (Flags & ELF::SHF_ALLOC) in PrintSwitchToSection() 81 if (Flags & ELF::SHF_EXECINSTR) in PrintSwitchToSection() 83 if (Flags & ELF::SHF_WRITE) in PrintSwitchToSection() 85 if (Flags & ELF::SHF_EXCLUDE) in PrintSwitchToSection() 87 if (Flags & ELF::SHF_TLS) in PrintSwitchToSection() 94 if (Flags & ELF::SHF_ALLOC) in PrintSwitchToSection() 96 if (Flags & ELF::SHF_EXCLUDE) in PrintSwitchToSection() 98 if (Flags & ELF::SHF_EXECINSTR) in PrintSwitchToSection() 100 if (Flags & ELF::SHF_GROUP) in PrintSwitchToSection() [all …]
|
D | MCObjectFileInfo.cpp | 386 EHSectionType = ELF::SHT_PROGBITS; in InitELFMCObjectFileInfo() 387 EHSectionFlags = ELF::SHF_ALLOC; in InitELFMCObjectFileInfo() 390 EHSectionType = ELF::SHT_X86_64_UNWIND; in InitELFMCObjectFileInfo() 392 EHSectionFlags |= ELF::SHF_WRITE; in InitELFMCObjectFileInfo() 397 BSSSection = Ctx->getELFSection(".bss", ELF::SHT_NOBITS, in InitELFMCObjectFileInfo() 398 ELF::SHF_WRITE | ELF::SHF_ALLOC); in InitELFMCObjectFileInfo() 400 TextSection = Ctx->getELFSection(".text", ELF::SHT_PROGBITS, in InitELFMCObjectFileInfo() 401 ELF::SHF_EXECINSTR | ELF::SHF_ALLOC); in InitELFMCObjectFileInfo() 403 DataSection = Ctx->getELFSection(".data", ELF::SHT_PROGBITS, in InitELFMCObjectFileInfo() 404 ELF::SHF_WRITE | ELF::SHF_ALLOC); in InitELFMCObjectFileInfo() [all …]
|
/external/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 …]
|
/external/llvm/lib/Target/SystemZ/MCTargetDesc/ |
D | SystemZMCObjectWriter.cpp | 33 : MCELFObjectTargetWriter(/*Is64Bit=*/true, OSABI, ELF::EM_S390, in SystemZObjectWriter() 42 case FK_Data_1: return ELF::R_390_8; in getAbsoluteReloc() 43 case FK_Data_2: return ELF::R_390_16; in getAbsoluteReloc() 44 case FK_Data_4: return ELF::R_390_32; in getAbsoluteReloc() 45 case FK_Data_8: return ELF::R_390_64; in getAbsoluteReloc() 53 case FK_Data_2: return ELF::R_390_PC16; in getPCRelReloc() 54 case FK_Data_4: return ELF::R_390_PC32; in getPCRelReloc() 55 case FK_Data_8: return ELF::R_390_PC64; in getPCRelReloc() 56 case SystemZ::FK_390_PC16DBL: return ELF::R_390_PC16DBL; in getPCRelReloc() 57 case SystemZ::FK_390_PC32DBL: return ELF::R_390_PC32DBL; in getPCRelReloc() [all …]
|
/external/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 …]
|
/external/llvm/include/llvm/Object/ |
D | ELFObjectFile.h | 187 if ((Binding == ELF::STB_GLOBAL || Binding == ELF::STB_WEAK) && in isExportedToOtherDSO() 188 (Visibility == ELF::STV_DEFAULT || Visibility == ELF::STV_PROTECTED)) in isExportedToOtherDSO() 298 case ELF::SHN_COMMON: in getSymbolAddress() 299 case ELF::SHN_UNDEF: in getSymbolAddress() 302 case ELF::SHN_ABS: in getSymbolAddress() 313 if ((Header->e_machine == ELF::EM_ARM || Header->e_machine == ELF::EM_MIPS) && in getSymbolAddress() 314 ESym->getType() == ELF::STT_FUNC) in getSymbolAddress() 317 if (Header->e_type == ELF::ET_REL) { in getSymbolAddress() 330 if (Sym->st_shndx == ELF::SHN_COMMON) in getSymbolAlignment() 358 case ELF::STT_NOTYPE: in getSymbolType() [all …]
|
/external/llvm/lib/Object/ |
D | ELF.cpp | 16 case ELF::name: \ 21 case ELF::EM_X86_64: in getELFRelocationTypeName() 28 case ELF::EM_386: in getELFRelocationTypeName() 35 case ELF::EM_MIPS: in getELFRelocationTypeName() 42 case ELF::EM_AARCH64: in getELFRelocationTypeName() 49 case ELF::EM_ARM: in getELFRelocationTypeName() 56 case ELF::EM_HEXAGON: in getELFRelocationTypeName() 63 case ELF::EM_PPC: in getELFRelocationTypeName() 70 case ELF::EM_PPC64: in getELFRelocationTypeName() 77 case ELF::EM_S390: in getELFRelocationTypeName() [all …]
|