Searched defs:e_ident (Results 1 - 13 of 13) sorted by relevance

/external/elfutils/src/libdw/
H A Dencoded-value.h38 encoded_value_size (const Elf_Data *data, const unsigned char e_ident[], argument
54 return e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8;
76 width = width ?: cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8;
118 const size_t size = encoded_value_size (&cache->data->d, cache->e_ident,
187 - encoded_value_size (NULL, cache->e_ident,
H A Dcfi.h83 const unsigned char *e_ident; /* For EI_DATA and EI_CLASS. */ member in struct:Dwarf_CFI_s
223 #define BYTE_ORDER_DUMMY(var, e_ident) \
225 { ((BYTE_ORDER == LITTLE_ENDIAN && e_ident[EI_DATA] == ELFDATA2MSB) \
226 || (BYTE_ORDER == BIG_ENDIAN && e_ident[EI_DATA] == ELFDATA2LSB)) }
/external/libunwind/src/
H A Delfxx.h91 uint8_t* e_ident = (uint8_t*) ei->u.mapped.image; local
93 && e_ident[EI_CLASS] == ELF_CLASS && e_ident[EI_VERSION] != EV_NONE
94 && e_ident[EI_VERSION] <= EV_CURRENT);
98 uint8_t e_ident[EI_NIDENT]; local
100 if (SELFMAG != elf_w (memory_read) (ei, map->start, e_ident, SELFMAG, false)) {
103 if (memcmp (e_ident, ELFMAG, SELFMAG) != 0) {
108 ei, map->start + SELFMAG, e_ident + SELFMAG, EI_NIDENT - SELFMAG, false)) {
111 return e_ident[EI_CLASS] == ELF_CLASS && e_ident[EI_VERSIO
[all...]
/external/elfutils/src/libelf/
H A Delf_begin.c75 get_shnum (void *map_address, unsigned char *e_ident, int fildes, off_t offset, argument
90 bool is32 = e_ident[EI_CLASS] == ELFCLASS32;
93 if (e_ident[EI_DATA] == MY_ELFDATA
95 || (((size_t) e_ident
98 ehdr.p = e_ident;
110 ehdr_mem.e32.e_shnum = ((Elf32_Ehdr *) e_ident)->e_shnum;
111 ehdr_mem.e32.e_shoff = ((Elf32_Ehdr *) e_ident)->e_shoff;
114 memcpy (&ehdr_mem, e_ident, sizeof (Elf32_Ehdr));
116 if (e_ident[EI_DATA] != MY_ELFDATA)
126 ehdr_mem.e64.e_shnum = ((Elf64_Ehdr *) e_ident)
248 file_read_elf(int fildes, void *map_address, unsigned char *e_ident, off_t offset, size_t maxsize, Elf_Cmd cmd, Elf *parent) argument
501 unsigned char *e_ident = (unsigned char *) map_address + offset; local
[all...]
H A Delf.h69 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon4630
87 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon4631
103 /* Fields in the e_ident array. The EI_* macros are indices into the
/external/linux-tools-perf/src/tools/perf/util/
H A Dsymbol-minimal.c86 u8 e_ident[EI_NIDENT]; local
95 if (fread(e_ident, sizeof(e_ident), 1, fp) != 1)
98 if (memcmp(e_ident, ELFMAG, SELFMAG) ||
99 e_ident[EI_VERSION] != EV_CURRENT)
102 need_swap = check_need_swap(e_ident[EI_DATA]);
107 if (e_ident[EI_CLASS] == ELFCLASS32) {
/external/libvpx/libvpx/build/make/
H A Dobj_int_extract.c235 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon9377
244 COPY_STRUCT(&elf->e_ident, elf->buf, 0, elf->sz);
245 res = elf->e_ident[EI_MAG0] == ELFMAG0;
246 res &= elf->e_ident[EI_MAG1] == ELFMAG1;
247 res &= elf->e_ident[EI_MAG2] == ELFMAG2;
248 res &= elf->e_ident[EI_MAG3] == ELFMAG3;
249 res &= elf->e_ident[EI_CLASS] == ELFCLASS32
250 || elf->e_ident[EI_CLASS] == ELFCLASS64;
251 res &= elf->e_ident[EI_DATA] == ELFDATA2LSB;
255 elf->le_data = elf->e_ident[EI_DAT
[all...]
/external/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.h61 unsigned char e_ident[llvm::ELF::EI_NIDENT]; ///< ELF file identification. member in struct:elf::ELFHeader
84 return e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS32;
93 return e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS64;
/external/llvm/include/llvm/Object/
H A DELFTypes.h442 unsigned char e_ident[ELF::EI_NIDENT]; // ELF Identification bytes member in struct:llvm::object::Elf_Ehdr_Impl
458 return (memcmp(e_ident, ELF::ElfMagic, strlen(ELF::ElfMagic))) == 0;
460 unsigned char getFileClass() const { return e_ident[ELF::EI_CLASS]; }
461 unsigned char getDataEncoding() const { return e_ident[ELF::EI_DATA]; }
/external/elfutils/src/libdwfl/
H A Ddwfl_segment_report_module.c324 const unsigned char *e_ident; local
350 e_ident = ((const unsigned char *) buffer);
351 ei_class = e_ident[EI_CLASS];
352 ei_data = e_ident[EI_DATA];
464 ehdr.e32.e_ident[EI_DATA]) == NULL)
/external/kernel-headers/original/uapi/linux/
H A Delf.h204 unsigned char e_ident[EI_NIDENT]; member in struct:elf32_hdr
221 unsigned char e_ident[EI_NIDENT]; /* ELF "magic number" */ member in struct:elf64_hdr
325 #define EI_MAG0 0 /* e_ident[] indexes */
347 #define ELFDATANONE 0 /* e_ident[EI_DATA] */
/external/llvm/include/llvm/Support/
H A DELF.h48 // e_ident size and indices.
60 EI_NIDENT = 16 // Number of bytes in e_ident.
64 unsigned char e_ident[EI_NIDENT]; // ELF Identification bytes member in struct:llvm::ELF::Elf32_Ehdr
79 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0;
81 unsigned char getFileClass() const { return e_ident[EI_CLASS]; }
82 unsigned char getDataEncoding() const { return e_ident[EI_DATA]; }
88 unsigned char e_ident[EI_NIDENT]; member in struct:llvm::ELF::Elf64_Ehdr
103 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0;
105 unsigned char getFileClass() const { return e_ident[EI_CLASS]; }
106 unsigned char getDataEncoding() const { return e_ident[EI_DAT
[all...]
/external/valgrind/perf/
H A Dtinycc.c152 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon16804
170 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon16805
186 /* Fields in the e_ident array. The EI_* macros are indices into the
19755 ehdr.e_ident[0] = ELFMAG0;
19756 ehdr.e_ident[1] = ELFMAG1;
19757 ehdr.e_ident[2] = ELFMAG2;
19758 ehdr.e_ident[3] = ELFMAG3;
19759 ehdr.e_ident[4] = ELFCLASS32;
19760 ehdr.e_ident[5] = ELFDATA2LSB;
19761 ehdr.e_ident[
[all...]

Completed in 489 milliseconds