/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 6 RUN: obj2yaml %p/Inputs/trivial-object-test.elf-avr | FileCheck %s --check-prefix ELF-AVR 8 RUN: | FileCheck %s --check-prefix ELF-X86-64-UNWIND 192 ELF-MIPSEL: FileHeader: 193 ELF-MIPSEL-NEXT: Class: ELFCLASS32 194 ELF-MIPSEL-NEXT: Data: ELFDATA2LSB 195 ELF-MIPSEL-NEXT: OSABI: ELFOSABI_GNU 196 ELF-MIPSEL-NEXT: Type: ET_REL [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/Hexagon/MCTargetDesc/ |
D | HexagonELFObjectWriter.cpp | 37 : MCELFObjectTargetWriter(/*Is64bit*/ false, OSABI, ELF::EM_HEXAGON, in HexagonELFObjectWriter() 48 return ELF::R_HEX_NONE; in GetRelocType() 50 return (IsPCRel) ? ELF::R_HEX_32_PCREL : ELF::R_HEX_32; in GetRelocType() 52 return ELF::R_HEX_32_PCREL; in GetRelocType() 54 return ELF::R_HEX_16; in GetRelocType() 56 return ELF::R_HEX_8; in GetRelocType() 58 return ELF::R_HEX_B22_PCREL; in GetRelocType() 60 return ELF::R_HEX_B15_PCREL; in GetRelocType() 62 return ELF::R_HEX_B7_PCREL; in GetRelocType() 64 return ELF::R_HEX_LO16; in GetRelocType() [all …]
|
/external/llvm/test/CodeGen/AMDGPU/ |
D | hsa-globals.ll | 2 …bj -triple amdgcn--amdhsa -mcpu=kaveri | llvm-readobj -symbols -s | FileCheck %s --check-prefix=ELF 59 ; ELF: Section { 60 ; ELF: Name: .hsadata_global_program 61 ; ELF: Type: SHT_PROGBITS (0x1) 62 ; ELF: Flags [ (0x100003) 63 ; ELF: SHF_ALLOC (0x2) 64 ; ELF: SHF_AMDGPU_HSA_GLOBAL (0x100000) 65 ; ELF: SHF_WRITE (0x1) 66 ; ELF: ] 67 ; ELF: } [all …]
|
D | hsa.ll | 3 …amdhsa -mcpu=kaveri -filetype=obj | llvm-readobj -symbols -s -sd | FileCheck --check-prefix=ELF %s 4 …triple amdgcn--amdhsa -mcpu=kaveri | llvm-readobj -symbols -s -sd | FileCheck %s --check-prefix=ELF 9 ; ELF: Section { 10 ; ELF: Name: .hsatext 11 ; ELF: Type: SHT_PROGBITS (0x1) 12 ; ELF: Flags [ (0xC00007) 13 ; ELF: SHF_ALLOC (0x2) 14 ; ELF: SHF_AMDGPU_HSA_AGENT (0x800000) 15 ; ELF: SHF_AMDGPU_HSA_CODE (0x400000) 16 ; ELF: SHF_EXECINSTR (0x4) [all …]
|
/external/llvm/lib/Target/Sparc/MCTargetDesc/ |
D | SparcELFObjectWriter.cpp | 26 Is64Bit ? ELF::EM_SPARCV9 : ELF::EM_SPARC, in SparcELFObjectWriter() 47 return ELF::R_SPARC_DISP32; in GetRelocType() 54 case FK_Data_1: return ELF::R_SPARC_DISP8; in GetRelocType() 55 case FK_Data_2: return ELF::R_SPARC_DISP16; in GetRelocType() 56 case FK_Data_4: return ELF::R_SPARC_DISP32; in GetRelocType() 57 case FK_Data_8: return ELF::R_SPARC_DISP64; in GetRelocType() 58 case Sparc::fixup_sparc_call30: return ELF::R_SPARC_WDISP30; in GetRelocType() 59 case Sparc::fixup_sparc_br22: return ELF::R_SPARC_WDISP22; in GetRelocType() 60 case Sparc::fixup_sparc_br19: return ELF::R_SPARC_WDISP19; in GetRelocType() 61 case Sparc::fixup_sparc_pc22: return ELF::R_SPARC_PC22; in GetRelocType() [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() 122 Type = ELF::R_PPC_REL32; in GetRelocType() [all …]
|
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
D | MipsELFObjectWriter.cpp | 58 : MCELFObjectTargetWriter(_is64Bit, OSABI, ELF::EM_MIPS, in MipsELFObjectWriter() 72 return ELF::R_MIPS_NONE; in GetRelocType() 75 return IsPCRel ? ELF::R_MIPS_PC16 : ELF::R_MIPS_16; in GetRelocType() 78 return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32; in GetRelocType() 85 return ELF::R_MIPS_PC16; in GetRelocType() 87 return ELF::R_MICROMIPS_PC7_S1; in GetRelocType() 89 return ELF::R_MICROMIPS_PC10_S1; in GetRelocType() 91 return ELF::R_MICROMIPS_PC16_S1; in GetRelocType() 93 return ELF::R_MIPS_PC19_S2; in GetRelocType() 95 return ELF::R_MIPS_PC18_S3; in GetRelocType() [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/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/tools/llvm-readobj/ |
D | ELFDumper.cpp | 35 using namespace ELF; 243 if (vn->vn_version != ELF::VER_NEED_CURRENT) in LoadVersionNeeds() 252 size_t index = vna->vna_other & ELF::VERSYM_VERSION; in LoadVersionNeeds() 277 if (vd->vd_version != ELF::VER_DEF_CURRENT) in LoadVersionDefs() 279 size_t index = vd->vd_ndx & ELF::VERSYM_VERSION; in LoadVersionDefs() 416 size_t version_index = vs->vs_index & ELF::VERSYM_VERSION; in getSymbolVersion() 419 if (version_index == ELF::VER_NDX_LOCAL || in getSymbolVersion() 420 version_index == ELF::VER_NDX_GLOBAL) { in getSymbolVersion() 436 IsDefault = !(vs->vs_index & ELF::VERSYM_HIDDEN); in getSymbolVersion() 512 { "None", ELF::ELFCLASSNONE }, [all …]
|
/external/llvm/lib/MC/ |
D | MCSymbolELF.cpp | 49 case ELF::STB_LOCAL: in setBinding() 52 case ELF::STB_GLOBAL: in setBinding() 55 case ELF::STB_WEAK: in setBinding() 58 case ELF::STB_GNU_UNIQUE: in setBinding() 73 return ELF::STB_LOCAL; in getBinding() 75 return ELF::STB_GLOBAL; in getBinding() 77 return ELF::STB_WEAK; in getBinding() 79 return ELF::STB_GNU_UNIQUE; in getBinding() 84 return ELF::STB_LOCAL; in getBinding() 86 return ELF::STB_GLOBAL; in getBinding() [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 …]
|
/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 | 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() [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/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 234 case ELF::R_X86_64_64: { in resolveX86_64Relocation() 241 case ELF::R_X86_64_32: in resolveX86_64Relocation() 242 case ELF::R_X86_64_32S: { in resolveX86_64Relocation() 244 assert((Type == ELF::R_X86_64_32 && (Value <= UINT32_MAX)) || in resolveX86_64Relocation() 245 (Type == ELF::R_X86_64_32S && in resolveX86_64Relocation() 254 case ELF::R_X86_64_PC8: { in resolveX86_64Relocation() 262 case ELF::R_X86_64_PC32: { in resolveX86_64Relocation() 271 case ELF::R_X86_64_PC64: { in resolveX86_64Relocation() 285 case ELF::R_386_32: { in resolveX86Relocation() 290 case ELF::R_386_PC32: { in resolveX86Relocation() [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() 29 case ELF::EM_IAMCU: in getELFRelocationTypeName() 36 case ELF::EM_MIPS: in getELFRelocationTypeName() 43 case ELF::EM_AARCH64: in getELFRelocationTypeName() 50 case ELF::EM_ARM: in getELFRelocationTypeName() 57 case ELF::EM_HEXAGON: in getELFRelocationTypeName() 64 case ELF::EM_PPC: in getELFRelocationTypeName() 71 case ELF::EM_PPC64: in getELFRelocationTypeName() [all …]
|