/external/swiftshader/third_party/llvm-7.0/llvm/test/Object/ |
D | readobj-shared-object.test | 2 RUN: %p/Inputs/shared-object-test.elf-i386 \ 3 RUN: | FileCheck %s -check-prefix ELF 5 RUN: %p/Inputs/shared-object-test.elf-i386 \ 9 RUN: %p/Inputs/shared-object-test.elf-x86-64 \ 10 RUN: | FileCheck %s -check-prefix ELF 12 RUN: %p/Inputs/shared-object-test.elf-x86-64 \ 25 ELF: Sections [ 26 ELF: Section { 27 ELF: Name: (0) 28 ELF: Type: SHT_NULL [all …]
|
D | obj2yaml.test | 5 RUN: obj2yaml %p/Inputs/trivial-object-test.elf-mipsel | FileCheck %s --check-prefix ELF-MIPSEL 6 RUN: obj2yaml %p/Inputs/trivial-object-test.elf-mips64el | FileCheck %s --check-prefix ELF-MIPS64EL 7 RUN: obj2yaml %p/Inputs/trivial-object-test.elf-x86-64 | FileCheck %s --check-prefix ELF-X86-64 8 RUN: obj2yaml %p/Inputs/trivial-object-test.elf-avr | FileCheck %s --check-prefix ELF-AVR 10 RUN: obj2yaml %p/Inputs/unwind-section.elf-x86-64 | FileCheck %s --check-prefix ELF-X86-64-UNWIND 350 ELF-MIPSEL: FileHeader: 351 ELF-MIPSEL-NEXT: Class: ELFCLASS32 352 ELF-MIPSEL-NEXT: Data: ELFDATA2LSB 353 ELF-MIPSEL-NEXT: OSABI: ELFOSABI_GNU 354 ELF-MIPSEL-NEXT: Type: ET_REL [all …]
|
/external/llvm/test/Object/ |
D | readobj-shared-object.test | 2 RUN: %p/Inputs/shared-object-test.elf-i386 \ 3 RUN: | FileCheck %s -check-prefix ELF 5 RUN: %p/Inputs/shared-object-test.elf-i386 \ 9 RUN: %p/Inputs/shared-object-test.elf-x86-64 \ 10 RUN: | FileCheck %s -check-prefix ELF 12 RUN: %p/Inputs/shared-object-test.elf-x86-64 \ 25 ELF: Sections [ 26 ELF: Section { 27 ELF: Name: (0) 28 ELF: Type: SHT_NULL [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 7 RUN: obj2yaml %p/Inputs/unwind-section.elf-x86-64 \ 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 [all …]
|
D | objdump-relocations.test | 5 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-i386 \ 6 RUN: | FileCheck %s -check-prefix ELF-i386 7 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-x86-64 \ 8 RUN: | FileCheck %s -check-prefix ELF-x86-64 9 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-hexagon \ 10 RUN: | FileCheck %s -check-prefix ELF-hexagon 11 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mips64el \ 12 RUN: | FileCheck %s -check-prefix ELF-MIPS64EL 13 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mipsel \ 14 RUN: | FileCheck %s -check-prefix ELF-MIPSEL [all …]
|
/external/llvm/test/tools/llvm-readobj/ |
D | reloc-types.test | 4 // Todo: ELF-PPC, ELF-HEXAGON 6 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-i386 | FileCheck %s -check-prefix EL… 7 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-x86_64 | FileCheck %s -check-prefix EL… 8 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-aarch64 | FileCheck %s -check-prefix EL… 9 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-arm | FileCheck %s -check-prefix EL… 10 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-lanai | FileCheck %s -check-prefix EL… 11 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-mips | FileCheck %s -check-prefix EL… 12 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-mips64el | FileCheck %s -check-prefix EL… 13 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-ppc64 | FileCheck %s -check-prefix EL… 21 ELF-32: Type: R_386_NONE (0) [all …]
|
D | program-headers.test | 1 RUN: llvm-readobj -program-headers %p/../../Object/Inputs/program-headers.elf-i386 \ 2 RUN: | FileCheck %s -check-prefix ELF-I386 3 RUN: llvm-readobj -program-headers %p/../../Object/Inputs/program-headers.elf-x86-64 \ 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 [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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-readobj/ |
D | reloc-types.test | 4 // Todo: ELF-PPC, ELF-HEXAGON 6 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-i386 | FileCheck %s -check-prefix EL… 7 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-x86_64 | FileCheck %s -check-prefix EL… 8 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-aarch64 | FileCheck %s -check-prefix EL… 9 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-arm | FileCheck %s -check-prefix EL… 10 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-lanai | FileCheck %s -check-prefix EL… 11 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-mips | FileCheck %s -check-prefix EL… 12 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-mips64el | FileCheck %s -check-prefix EL… 13 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-ppc64 | FileCheck %s -check-prefix EL… 21 ELF-32: Type: R_386_NONE (0) [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 Shared library: [libc.so.6] 12 ELF-MIPS: 0x0000000C INIT 0x528 13 ELF-MIPS: 0x0000000D FINI 0x860 [all …]
|
D | program-headers.test | 1 RUN: llvm-readobj -program-headers %p/../../Object/Inputs/program-headers.elf-i386 \ 2 RUN: | FileCheck %s -check-prefix ELF-I386 3 RUN: llvm-readobj -program-headers %p/../../Object/Inputs/program-headers.elf-x86-64 \ 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 ## openbsd-phdrs.elf-x86-64 was generated using GNU ld (GNU Binutils for Ubuntu) 2.26.1. 12 ## ld -script linker.script main.o -o openbsd-phdrs.elf-x86-64 21 RUN: llvm-readobj -program-headers %p/../../Object/Inputs/openbsd-phdrs.elf-x86-64 \ 24 ELF-I386: ProgramHeaders [ [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/MCTargetDesc/ |
D | HexagonELFObjectWriter.cpp | 19 #define DEBUG_TYPE "hexagon-elf-writer" 39 : MCELFObjectTargetWriter(/*Is64bit*/ false, OSABI, ELF::EM_HEXAGON, in HexagonELFObjectWriter() 55 return ELF::R_HEX_DTPREL_32; in getRelocType() 57 return ELF::R_HEX_GOT_32; in getRelocType() 59 return ELF::R_HEX_GOTREL_32; in getRelocType() 61 return ELF::R_HEX_GD_GOT_32; in getRelocType() 63 return ELF::R_HEX_IE_32; in getRelocType() 65 return ELF::R_HEX_IE_GOT_32; in getRelocType() 67 return ELF::R_HEX_LD_GOT_32; in getRelocType() 69 return ELF::R_HEX_32_PCREL; in getRelocType() [all …]
|
/external/llvm/lib/Target/Hexagon/MCTargetDesc/ |
D | HexagonELFObjectWriter.cpp | 18 #define DEBUG_TYPE "hexagon-elf-writer" 38 : MCELFObjectTargetWriter(/*Is64bit*/ false, OSABI, ELF::EM_HEXAGON, in HexagonELFObjectWriter() 54 return ELF::R_HEX_DTPREL_32; in getRelocType() 56 return ELF::R_HEX_GOT_32; in getRelocType() 58 return ELF::R_HEX_GOTREL_32; in getRelocType() 60 return ELF::R_HEX_GD_GOT_32; in getRelocType() 62 return ELF::R_HEX_IE_32; in getRelocType() 64 return ELF::R_HEX_IE_GOT_32; in getRelocType() 66 return ELF::R_HEX_LD_GOT_32; in getRelocType() 68 return ELF::R_HEX_32_PCREL; in getRelocType() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/MCTargetDesc/ |
D | MipsELFObjectWriter.cpp | 1 //===-- MipsELFObjectWriter.cpp - Mips ELF Writer -------------------------===// 13 #include "llvm/BinaryFormat/ELF.h" 31 #define DEBUG_TYPE "mips-elf-object-writer" 136 /// is ELF::R_MIPS_NONE. 143 if (Type == ELF::R_MIPS_HI16) in getMatchingLoType() 144 return ELF::R_MIPS_LO16; in getMatchingLoType() 145 if (Type == ELF::R_MICROMIPS_HI16) in getMatchingLoType() 146 return ELF::R_MICROMIPS_LO16; in getMatchingLoType() 147 if (Type == ELF::R_MIPS16_HI16) in getMatchingLoType() 148 return ELF::R_MIPS16_LO16; in getMatchingLoType() [all …]
|
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
D | MipsELFObjectWriter.cpp | 1 //===-- MipsELFObjectWriter.cpp - Mips ELF Writer -------------------------===// 26 #define DEBUG_TYPE "mips-elf-object-writer" 129 /// is ELF::R_MIPS_NONE. 136 if (Type == ELF::R_MIPS_HI16) in getMatchingLoType() 137 return ELF::R_MIPS_LO16; in getMatchingLoType() 138 if (Type == ELF::R_MICROMIPS_HI16) in getMatchingLoType() 139 return ELF::R_MICROMIPS_LO16; in getMatchingLoType() 140 if (Type == ELF::R_MIPS16_HI16) in getMatchingLoType() 141 return ELF::R_MIPS16_LO16; in getMatchingLoType() 143 if (Reloc.OriginalSymbol->getBinding() != ELF::STB_LOCAL) in getMatchingLoType() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCELFObjectWriter.cpp | 1 //===-- PPCELFObjectWriter.cpp - PPC ELF Writer ---------------------------===// 39 Is64Bit ? ELF::EM_PPC64 : ELF::EM_PPC, in PPCELFObjectWriter() 90 Type = ELF::R_PPC_REL24; in getRelocType() 93 Type = ELF::R_PPC_PLTREL24; in getRelocType() 96 Type = ELF::R_PPC_LOCAL24PC; in getRelocType() 102 Type = ELF::R_PPC_REL14; in getRelocType() 108 Type = ELF::R_PPC_REL16; in getRelocType() 111 Type = ELF::R_PPC_REL16_LO; in getRelocType() 114 Type = ELF::R_PPC_REL16_HI; in getRelocType() 117 Type = ELF::R_PPC_REL16_HA; in getRelocType() [all …]
|
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
D | AArch64ELFObjectWriter.cpp | 1 //===-- AArch64ELFObjectWriter.cpp - AArch64 ELF Writer -------------------===// 10 // This file handles ELF-specific object emission, converting LLVM's internal 42 : MCELFObjectTargetWriter(/*Is64Bit*/ true, OSABI, ELF::EM_AARCH64, in AArch64ELFObjectWriter() 68 return ELF::R_AARCH64_NONE; in getRelocType() 70 return ELF::R_AARCH64_PREL16; in getRelocType() 72 return ELF::R_AARCH64_PREL32; in getRelocType() 74 return ELF::R_AARCH64_PREL64; in getRelocType() 77 return ELF::R_AARCH64_ADR_PREL_LO21; in getRelocType() 80 return ELF::R_AARCH64_ADR_PREL_PG_HI21; in getRelocType() 82 return ELF::R_AARCH64_ADR_GOT_PAGE; in getRelocType() [all …]
|
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCELFObjectWriter.cpp | 1 //===-- PPCELFObjectWriter.cpp - PPC ELF Writer ---------------------------===// 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() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/MCTargetDesc/ |
D | SparcELFObjectWriter.cpp | 1 //===-- SparcELFObjectWriter.cpp - Sparc ELF Writer -----------------------===// 27 Is64Bit ? ELF::EM_SPARCV9 : ELF::EM_SPARC, in SparcELFObjectWriter() 49 return ELF::R_SPARC_DISP32; in getRelocType() 56 case FK_Data_1: return ELF::R_SPARC_DISP8; in getRelocType() 57 case FK_Data_2: return ELF::R_SPARC_DISP16; in getRelocType() 58 case FK_Data_4: return ELF::R_SPARC_DISP32; in getRelocType() 59 case FK_Data_8: return ELF::R_SPARC_DISP64; in getRelocType() 60 case Sparc::fixup_sparc_call30: return ELF::R_SPARC_WDISP30; in getRelocType() 61 case Sparc::fixup_sparc_br22: return ELF::R_SPARC_WDISP22; in getRelocType() 62 case Sparc::fixup_sparc_br19: return ELF::R_SPARC_WDISP19; in getRelocType() [all …]
|
/external/kmod/libkmod/ |
D | libkmod-elf.c | 21 #include <elf.h> 73 #define ELFDBG(elf, ...) \ argument 74 _elf_dbg(elf, __FILE__, __LINE__, __func__, __VA_ARGS__); 76 static inline void _elf_dbg(const struct kmod_elf *elf, const char *fname, unsigned line, const cha… in _elf_dbg() argument 81 (elf->class & KMOD_ELF_32) ? 32 : 64, in _elf_dbg() 82 (elf->class & KMOD_ELF_MSB) ? 'M' : 'L', in _elf_dbg() 89 #define ELFDBG(elf, ...) argument 130 static inline uint64_t elf_get_uint(const struct kmod_elf *elf, uint64_t offset, uint16_t size) in elf_get_uint() argument 137 assert(offset + size <= elf->size); in elf_get_uint() 138 if (offset + size > elf->size) { in elf_get_uint() [all …]
|
/external/llvm/lib/Target/Sparc/MCTargetDesc/ |
D | SparcELFObjectWriter.cpp | 1 //===-- SparcELFObjectWriter.cpp - Sparc ELF Writer -----------------------===// 26 Is64Bit ? ELF::EM_SPARCV9 : ELF::EM_SPARC, in SparcELFObjectWriter() 48 return ELF::R_SPARC_DISP32; in getRelocType() 55 case FK_Data_1: return ELF::R_SPARC_DISP8; in getRelocType() 56 case FK_Data_2: return ELF::R_SPARC_DISP16; in getRelocType() 57 case FK_Data_4: return ELF::R_SPARC_DISP32; in getRelocType() 58 case FK_Data_8: return ELF::R_SPARC_DISP64; in getRelocType() 59 case Sparc::fixup_sparc_call30: return ELF::R_SPARC_WDISP30; in getRelocType() 60 case Sparc::fixup_sparc_br22: return ELF::R_SPARC_WDISP22; in getRelocType() 61 case Sparc::fixup_sparc_br19: return ELF::R_SPARC_WDISP19; in getRelocType() [all …]
|
/external/elfutils/libelf/ |
D | elf32_newphdr.c | 1 /* Create new ELF program header table. 46 elfw2(LIBELFBITS,newphdr) (Elf *elf, size_t count) in ElfW2() 50 if (elf == NULL) in ElfW2() 53 if (unlikely (elf->kind != ELF_K_ELF)) in ElfW2() 65 rwlock_wrlock (elf->lock); in ElfW2() 67 if (elf->class == 0) in ElfW2() 68 elf->class = ELFW(ELFCLASS,LIBELFBITS); in ElfW2() 69 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) in ElfW2() 76 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL)) in ElfW2() 87 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL) in ElfW2() [all …]
|
D | elf_newscn.c | 44 elf_newscn (Elf *elf) in elf_newscn() argument 49 if (elf == NULL) in elf_newscn() 52 /* We rely on the prefix of the `elf', `elf32', and `elf64' element in elf_newscn() 54 assert (offsetof (Elf, state.elf.scns_last) in elf_newscn() 55 == offsetof (Elf, state.elf32.scns_last)); in elf_newscn() 56 assert (offsetof (Elf, state.elf.scns_last) in elf_newscn() 57 == offsetof (Elf, state.elf64.scns_last)); in elf_newscn() 58 assert (offsetof (Elf, state.elf32.scns) in elf_newscn() 59 == offsetof (Elf, state.elf64.scns)); in elf_newscn() 61 rwlock_wrlock (elf->lock); in elf_newscn() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Object/AMDGPU/ |
D | elf-header-flags-mach.yaml | 2 # RUN: llvm-readobj -s -file-headers %t.o.1 | FileCheck --check-prefixes=ELF-ALL,ELF-R600 %s 5 # RUN: llvm-readobj -s -file-headers %t.o.2 | FileCheck --check-prefixes=ELF-ALL,ELF-R630 %s 8 # RUN: llvm-readobj -s -file-headers %t.o.3 | FileCheck --check-prefixes=ELF-ALL,ELF-RS880 %s 11 # RUN: llvm-readobj -s -file-headers %t.o.4 | FileCheck --check-prefixes=ELF-ALL,ELF-RV670 %s 14 # RUN: llvm-readobj -s -file-headers %t.o.5 | FileCheck --check-prefixes=ELF-ALL,ELF-RV710 %s 17 # RUN: llvm-readobj -s -file-headers %t.o.6 | FileCheck --check-prefixes=ELF-ALL,ELF-RV730 %s 20 # RUN: llvm-readobj -s -file-headers %t.o.7 | FileCheck --check-prefixes=ELF-ALL,ELF-RV770 %s 23 # RUN: llvm-readobj -s -file-headers %t.o.8 | FileCheck --check-prefixes=ELF-ALL,ELF-CEDAR %s 26 # RUN: llvm-readobj -s -file-headers %t.o.9 | FileCheck --check-prefixes=ELF-ALL,ELF-CYPRESS %s 29 # RUN: llvm-readobj -s -file-headers %t.o.10 | FileCheck --check-prefixes=ELF-ALL,ELF-JUNIPER %s [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/ |
D | ELF.cpp | 1 //===- ELF.cpp - ELF object file implementation ---------------------------===// 10 #include "llvm/Object/ELF.h" 11 #include "llvm/BinaryFormat/ELF.h" 21 #define ELF_RELOC(name, value) STRINGIFY_ENUM_CASE(ELF, name) 26 case ELF::EM_X86_64: in getELFRelocationTypeName() 33 case ELF::EM_386: in getELFRelocationTypeName() 34 case ELF::EM_IAMCU: in getELFRelocationTypeName() 41 case ELF::EM_MIPS: in getELFRelocationTypeName() 48 case ELF::EM_AARCH64: in getELFRelocationTypeName() 55 case ELF::EM_ARM: in getELFRelocationTypeName() [all …]
|