/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 189 ELF-MIPSEL: FileHeader: 190 ELF-MIPSEL-NEXT: Class: ELFCLASS32 191 ELF-MIPSEL-NEXT: Data: ELFDATA2LSB 192 ELF-MIPSEL-NEXT: Type: ET_REL 193 ELF-MIPSEL-NEXT: Machine: EM_MIPS 194 ELF-MIPSEL-NEXT: Flags: [ EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_ABI_O32… 195 ELF-MIPSEL-NEXT: Sections: [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 …]
|
D | readobj-elf-versioning.test | 1 RUN: llvm-readobj -dt %p/Inputs/elf-versioning-test.i386 \ 2 RUN: | FileCheck %s -check-prefix ELF 3 RUN: llvm-readobj -dt %p/Inputs/elf-versioning-test.i386 \ 5 RUN: llvm-readobj -dt %p/Inputs/elf-versioning-test.x86_64 \ 6 RUN: | FileCheck %s -check-prefix ELF 7 RUN: llvm-readobj -dt %p/Inputs/elf-versioning-test.x86_64 \ 10 ELF: DynamicSymbols [ 11 ELF: Symbol { 12 ELF: Name: foo@@VER2 13 ELF: Binding: Global [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-mips | FileCheck %s -check-prefix EL… 11 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-mips64el | FileCheck %s -check-prefix EL… 12 …: llvm-readobj -r -expand-relocs %p/Inputs/relocs.obj.elf-ppc64 | FileCheck %s -check-prefix EL… 20 ELF-32: Type: R_386_NONE (0) 21 ELF-32: Type: R_386_32 (1) [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 …]
|
D | symbols.test | 3 RUN: llvm-readobj -t %p/Inputs/trivial.obj.elf-i386 \ 4 RUN: | FileCheck %s -check-prefix ELF 44 ELF: Symbols [ 45 ELF-NEXT: Symbol { 46 ELF-NEXT: Name: (0) 47 ELF-NEXT: Value: 0x0 48 ELF-NEXT: Size: 0 49 ELF-NEXT: Binding: Local (0x0) 50 ELF-NEXT: Type: None (0x0) 51 ELF-NEXT: Other: 0 [all …]
|
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/elf/tests/ |
D | Makefile.inc | 1 TESTS += modules/objfmts/elf/tests/elf_test.sh 3 EXTRA_DIST += modules/objfmts/elf/tests/elf_test.sh 4 EXTRA_DIST += modules/objfmts/elf/tests/curpos.asm 5 EXTRA_DIST += modules/objfmts/elf/tests/curpos.hex 6 EXTRA_DIST += modules/objfmts/elf/tests/curpos-err.asm 7 EXTRA_DIST += modules/objfmts/elf/tests/curpos-err.errwarn 8 EXTRA_DIST += modules/objfmts/elf/tests/elf-overdef.asm 9 EXTRA_DIST += modules/objfmts/elf/tests/elf-overdef.hex 10 EXTRA_DIST += modules/objfmts/elf/tests/elf-x86id.asm 11 EXTRA_DIST += modules/objfmts/elf/tests/elf-x86id.hex [all …]
|
/external/llvm/tools/llvm-readobj/ |
D | ELFDumper.cpp | 1 //===-- ELFDumper.cpp - ELF-specific dumper ---------------------*- C++ -*-===// 11 /// \brief This file implements the ELF-specific dumper for llvm-readobj. 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 }, [all …]
|
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
D | MipsELFObjectWriter.cpp | 1 //===-- MipsELFObjectWriter.cpp - Mips ELF Writer -------------------------===// 39 : MCELFObjectTargetWriter(_is64Bit, OSABI, ELF::EM_MIPS, in MipsELFObjectWriter() 49 unsigned Type = (unsigned)ELF::R_MIPS_NONE; in GetRelocType() 56 Type = ELF::R_MIPS_32; in GetRelocType() 59 Type = ELF::R_MIPS_64; in GetRelocType() 63 Type = setRType((unsigned)ELF::R_MIPS_GPREL32, Type); in GetRelocType() 64 Type = setRType2((unsigned)ELF::R_MIPS_64, Type); in GetRelocType() 65 Type = setRType3((unsigned)ELF::R_MIPS_NONE, Type); in GetRelocType() 68 Type = ELF::R_MIPS_GPREL32; in GetRelocType() 71 Type = ELF::R_MIPS_GPREL16; 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() 86 Type = ELF::R_PPC_REL24; in getRelocTypeInner() 90 Type = ELF::R_PPC_REL14; in getRelocTypeInner() 96 Type = ELF::R_PPC_REL16; in getRelocTypeInner() 99 Type = ELF::R_PPC_REL16_LO; in getRelocTypeInner() 102 Type = ELF::R_PPC_REL16_HI; in getRelocTypeInner() 105 Type = ELF::R_PPC_REL16_HA; in getRelocTypeInner() 111 Type = ELF::R_PPC_REL32; in getRelocTypeInner() 115 Type = ELF::R_PPC64_REL64; in getRelocTypeInner() [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 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() [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() 42 return ELF::R_SPARC_DISP32; in GetRelocType() 49 case FK_Data_1: return ELF::R_SPARC_DISP8; in GetRelocType() 50 case FK_Data_2: return ELF::R_SPARC_DISP16; in GetRelocType() 51 case FK_Data_4: return ELF::R_SPARC_DISP32; in GetRelocType() 52 case FK_Data_8: return ELF::R_SPARC_DISP64; in GetRelocType() 53 case Sparc::fixup_sparc_call30: return ELF::R_SPARC_WDISP30; in GetRelocType() 54 case Sparc::fixup_sparc_br22: return ELF::R_SPARC_WDISP22; in GetRelocType() 55 case Sparc::fixup_sparc_br19: return ELF::R_SPARC_WDISP19; in GetRelocType() [all …]
|
/external/elfutils/0.153/libelf/ |
D | elf32_newphdr.c | 1 /* Create new ELF program header table. 67 elfw2(LIBELFBITS,newphdr) (elf, count) 68 Elf *elf; 73 if (elf == NULL) 76 if (unlikely (elf->kind != ELF_K_ELF)) 88 rwlock_wrlock (elf->lock); 90 if (elf->class == 0) 91 elf->class = ELFW(ELFCLASS,LIBELFBITS); 92 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) 99 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL)) [all …]
|
D | elf_newscn.c | 65 elf_newscn (elf) in elf_newscn() argument 66 Elf *elf; in elf_newscn() 71 if (elf == NULL) 74 /* We rely on the prefix of the `elf', `elf32', and `elf64' element 76 assert (offsetof (Elf, state.elf.scns_last) 77 == offsetof (Elf, state.elf32.scns_last)); 78 assert (offsetof (Elf, state.elf.scns_last) 79 == offsetof (Elf, state.elf64.scns_last)); 80 assert (offsetof (Elf, state.elf32.scns) 81 == offsetof (Elf, state.elf64.scns)); [all …]
|
D | elf_end.c | 1 /* Free resources associated with Elf descriptor. 64 elf_end (elf) in elf_end() argument 65 Elf *elf; in elf_end() 67 Elf *parent; 69 if (elf == NULL) 74 rwlock_wrlock (elf->lock); 76 if (elf->ref_count != 0 && --elf->ref_count != 0) 79 int result = elf->ref_count; 80 rwlock_unlock (elf->lock); 84 if (elf->kind == ELF_K_AR) [all …]
|
D | elf_update.c | 64 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) in write_file() argument 66 int class = elf->class; in write_file() 70 if (unlikely (fstat (elf->fildes, &st) != 0)) in write_file() 81 if (elf->parent == NULL in write_file() 82 && (elf->maximum_size == ~((size_t) 0) in write_file() 83 || (size_t) size > elf->maximum_size) in write_file() 84 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file() 91 if (elf->map_address == NULL && elf->cmd == ELF_C_WRITE_MMAP) in write_file() 96 elf->map_address = mmap (NULL, size, PROT_READ | PROT_WRITE, in write_file() 97 MAP_SHARED, elf->fildes, 0); in write_file() [all …]
|
D | elf_begin.c | 73 static inline Elf * 75 Elf_Cmd cmd, Elf *parent) in file_read_ar() 77 Elf *elf; in file_read_ar() local 80 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_ar() 82 if (elf != NULL) in file_read_ar() 86 elf->state.ar.offset = offset + SARMAG; in file_read_ar() 88 elf->state.ar.elf_ar_hdr.ar_rawname = elf->state.ar.raw_name; in file_read_ar() 91 return elf; in file_read_ar() 113 /* Make the ELF header available. */ in get_shnum() 122 /* We already read the ELF header. We have to copy the header in get_shnum() [all …]
|
D | libelf.h | 55 /* Get the ELF types. */ 56 #include <elf.h> 65 ELF_T_EHDR, /* ELF header. */ 96 unsigned int d_version; /* ELF version. */ 128 /* Flags for the ELF structures. */ 146 ELF_K_ELF, /* ELF file. */ 174 /* Descriptor for the ELF file. */ 175 typedef struct Elf Elf; typedef 177 /* Descriptor for ELF file section. */ 185 /* Return descriptor for ELF file to work according to CMD. */ [all …]
|
D | elf32_getphdr.c | 1 /* Get ELF program header table. 70 __elfw2(LIBELFBITS,getphdr_wrlock) (elf) 71 Elf *elf; 78 result = elf->state.ELFW(elf,LIBELFBITS).phdr; 82 if (elf->class == 0) 83 elf->class = ELFW(ELFCLASS,LIBELFBITS); 84 else if (elf->class != ELFW(ELFCLASS,LIBELFBITS)) 94 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 98 if (__elf_getphdrnum_rdlock (elf, &phnum) != 0) 108 if (ehdr->e_phoff > elf->maximum_size [all …]
|
D | elf_getshdrstrndx.c | 67 elf_getshdrstrndx (elf, dst) in elf_getshdrstrndx() argument 68 Elf *elf; in elf_getshdrstrndx() 73 if (elf == NULL) 76 if (unlikely (elf->kind != ELF_K_ELF)) 82 rwlock_rdlock (elf->lock); 84 /* We rely here on the fact that the `elf' element is a common prefix 86 assert (offsetof (struct Elf, state.elf.ehdr) 87 == offsetof (struct Elf, state.elf32.ehdr)); 88 assert (sizeof (elf->state.elf.ehdr) 89 == sizeof (elf->state.elf32.ehdr)); [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreTargetObjectFile.cpp | 15 #include "llvm/Support/ELF.h" 25 Ctx.getELFSection(".dp.bss", ELF::SHT_NOBITS, in Initialize() 26 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 27 ELF::XCORE_SHF_DP_SECTION, in Initialize() 30 Ctx.getELFSection(".dp.bss.large", ELF::SHT_NOBITS, in Initialize() 31 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 32 ELF::XCORE_SHF_DP_SECTION, in Initialize() 35 Ctx.getELFSection(".dp.data", ELF::SHT_PROGBITS, in Initialize() 36 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 37 ELF::XCORE_SHF_DP_SECTION, in Initialize() [all …]
|
/external/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86ELFObjectWriter.cpp | 1 //===-- X86ELFObjectWriter.cpp - X86 ELF Writer ---------------------------===// 15 #include "llvm/Support/ELF.h" 36 /*HasRelocationAddend*/ EMachine != ELF::EM_386) {} in X86ELFObjectWriter() 48 if (getEMachine() == ELF::EM_X86_64) { in GetRelocType() 53 case FK_Data_8: Type = ELF::R_X86_64_PC64; break; in GetRelocType() 54 case FK_Data_4: Type = ELF::R_X86_64_PC32; break; in GetRelocType() 55 case FK_Data_2: Type = ELF::R_X86_64_PC16; break; in GetRelocType() 56 case FK_Data_1: Type = ELF::R_X86_64_PC8; break; in GetRelocType() 60 Type = ELF::R_X86_64_PC64; in GetRelocType() 70 Type = ELF::R_X86_64_PC32; in GetRelocType() [all …]
|
/external/chromium_org/tools/relocation_packer/src/ |
D | elf_file.cc | 7 // We need to remove a piece from the ELF shared library. However, we also 50 static const ELF::Sword DT_ANDROID_REL_OFFSET = DT_LOOS; 51 static const ELF::Sword DT_ANDROID_REL_SIZE = DT_LOOS + 1; 83 // Verbose ELF header logging. 84 void VerboseLogElfHeader(const ELF::Ehdr* elf_header) { in VerboseLogElfHeader() 94 // Verbose ELF program header logging. 96 const ELF::Phdr* program_header) { in VerboseLogProgramHeader() 119 // Verbose ELF section header logging. 121 const ELF::Shdr* section_header) { in VerboseLogSectionHeader() 129 // Verbose ELF section data logging. [all …]
|