/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/unwind-section.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 [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 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 [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/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/elfutils/src/libelf/ |
D | elf32_newphdr.c | 1 /* Create new ELF program header table. 46 elfw2(LIBELFBITS,newphdr) (elf, count) 47 Elf *elf; 52 if (elf == NULL) 55 if (unlikely (elf->kind != ELF_K_ELF)) 67 rwlock_wrlock (elf->lock); 69 if (elf->class == 0) 70 elf->class = ELFW(ELFCLASS,LIBELFBITS); 71 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) 78 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL)) [all …]
|
D | elf_end.c | 1 /* Free resources associated with Elf descriptor. 43 elf_end (elf) in elf_end() argument 44 Elf *elf; in elf_end() 46 Elf *parent; 48 if (elf == NULL) 53 rwlock_wrlock (elf->lock); 55 if (elf->ref_count != 0 && --elf->ref_count != 0) 58 int result = elf->ref_count; 59 rwlock_unlock (elf->lock); 63 if (elf->kind == ELF_K_AR) [all …]
|
D | elf_newscn.c | 44 elf_newscn (elf) in elf_newscn() argument 45 Elf *elf; in elf_newscn() 50 if (elf == NULL) 53 /* We rely on the prefix of the `elf', `elf32', and `elf64' element 55 assert (offsetof (Elf, state.elf.scns_last) 56 == offsetof (Elf, state.elf32.scns_last)); 57 assert (offsetof (Elf, state.elf.scns_last) 58 == offsetof (Elf, state.elf64.scns_last)); 59 assert (offsetof (Elf, state.elf32.scns) 60 == offsetof (Elf, state.elf64.scns)); [all …]
|
D | elf_getshdrstrndx.c | 46 elf_getshdrstrndx (elf, dst) in elf_getshdrstrndx() argument 47 Elf *elf; in elf_getshdrstrndx() 52 if (elf == NULL) 55 if (unlikely (elf->kind != ELF_K_ELF)) 61 rwlock_rdlock (elf->lock); 63 /* We rely here on the fact that the `elf' element is a common prefix 65 assert (offsetof (struct Elf, state.elf.ehdr) 66 == offsetof (struct Elf, state.elf32.ehdr)); 67 assert (sizeof (elf->state.elf.ehdr) 68 == sizeof (elf->state.elf32.ehdr)); [all …]
|
D | elf_update.c | 43 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) in write_file() argument 45 int class = elf->class; in write_file() 49 if (unlikely (fstat (elf->fildes, &st) != 0)) in write_file() 60 if (elf->parent == NULL in write_file() 61 && (elf->maximum_size == ~((size_t) 0) in write_file() 62 || (size_t) size > elf->maximum_size) in write_file() 63 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file() 70 if (elf->map_address == NULL && elf->cmd == ELF_C_WRITE_MMAP) in write_file() 72 elf->map_address = mmap (NULL, size, PROT_READ | PROT_WRITE, in write_file() 73 MAP_SHARED, elf->fildes, 0); in write_file() [all …]
|
D | elf_begin.c | 52 static inline Elf * 54 Elf_Cmd cmd, Elf *parent) in file_read_ar() 56 Elf *elf; in file_read_ar() local 59 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_ar() 61 if (elf != NULL) in file_read_ar() 65 elf->state.ar.offset = offset + SARMAG; in file_read_ar() 67 elf->state.ar.elf_ar_hdr.ar_rawname = elf->state.ar.raw_name; in file_read_ar() 70 return elf; in file_read_ar() 92 /* Make the ELF header available. */ in get_shnum() 101 /* We already read the ELF header. We have to copy the header in get_shnum() [all …]
|
D | elf32_getphdr.c | 1 /* Get ELF program header table. 49 __elfw2(LIBELFBITS,getphdr_wrlock) (elf) 50 Elf *elf; 57 result = elf->state.ELFW(elf,LIBELFBITS).phdr; 61 if (elf->class == 0) 62 elf->class = ELFW(ELFCLASS,LIBELFBITS); 63 else if (elf->class != ELFW(ELFCLASS,LIBELFBITS)) 73 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 77 if (__elf_getphdrnum_rdlock (elf, &phnum) != 0) 89 || ehdr->e_phoff > elf->maximum_size [all …]
|
D | libelf.h | 34 /* Get the ELF types. */ 35 #include <elf.h> 44 ELF_T_EHDR, /* ELF header. */ 75 unsigned int d_version; /* ELF version. */ 107 /* Flags for the ELF structures. */ 125 ELF_K_ELF, /* ELF file. */ 153 /* Descriptor for the ELF file. */ 154 typedef struct Elf Elf; typedef 156 /* Descriptor for ELF file section. */ 164 /* Return descriptor for ELF file to work according to CMD. */ [all …]
|
D | elf32_updatefile.c | 106 __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum) in __elfw2() 110 /* We need the ELF header several times. */ in __elfw2() 111 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in __elfw2() 113 /* Write out the ELF header. */ in __elfw2() 114 if ((elf->state.ELFW(elf,LIBELFBITS).ehdr_flags | elf->flags) & ELF_F_DIRTY) in __elfw2() 123 /* Today there is only one version of the ELF header. */ in __elfw2() 133 (*fctp) ((char *) elf->map_address + elf->start_offset, ehdr, in __elfw2() 136 else if (elf->map_address + elf->start_offset != ehdr) in __elfw2() 137 memcpy (elf->map_address + elf->start_offset, ehdr, in __elfw2() 140 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags &= ~ELF_F_DIRTY; in __elfw2() [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/XCore/ |
D | XCoreTargetObjectFile.cpp | 15 #include "llvm/Support/ELF.h" 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() [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() 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() [all …]
|
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
D | MipsELFObjectWriter.cpp | 1 //===-- MipsELFObjectWriter.cpp - Mips ELF Writer -------------------------===// 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() [all …]
|
/external/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86ELFObjectWriter.cpp | 1 //===-- X86ELFObjectWriter.cpp - X86 ELF Writer ---------------------------===// 15 #include "llvm/Support/ELF.h" 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() [all …]
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMELFObjectWriter.cpp | 1 //===-- ARMELFObjectWriter.cpp - ARM ELF Writer ---------------------------===// 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() [all …]
|