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

/external/elfutils/0.153/libdw/
H A Dencoded-value.h59 encoded_value_size (const Elf_Data *data, const unsigned char e_ident[], argument
75 return e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8;
97 width = width ?: cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8;
139 const size_t size = encoded_value_size (&cache->data->d, cache->e_ident,
206 - encoded_value_size (NULL, cache->e_ident,
H A Dcfi.h104 const unsigned char *e_ident; /* For EI_DATA and EI_CLASS. */ member in struct:Dwarf_CFI_s
244 #define BYTE_ORDER_DUMMY(var, e_ident) \
246 { ((BYTE_ORDER == LITTLE_ENDIAN && e_ident[EI_DATA] == ELFDATA2MSB) \
247 || (BYTE_ORDER == BIG_ENDIAN && e_ident[EI_DATA] == ELFDATA2LSB)) }
/external/elfutils/0.153/libelf/
H A Delf_begin.c96 get_shnum (void *map_address, unsigned char *e_ident, int fildes, off_t offset, argument
111 bool is32 = e_ident[EI_CLASS] == ELFCLASS32;
114 if (e_ident[EI_DATA] == MY_ELFDATA
116 || (((size_t) e_ident
119 ehdr.p = e_ident;
131 ehdr_mem.e32.e_shnum = ((Elf32_Ehdr *) e_ident)->e_shnum;
132 ehdr_mem.e32.e_shoff = ((Elf32_Ehdr *) e_ident)->e_shoff;
135 memcpy (&ehdr_mem, e_ident, sizeof (Elf32_Ehdr));
137 if (e_ident[EI_DATA] != MY_ELFDATA)
147 ehdr_mem.e64.e_shnum = ((Elf64_Ehdr *) e_ident)
267 file_read_elf(int fildes, void *map_address, unsigned char *e_ident, off_t offset, size_t maxsize, Elf_Cmd cmd, Elf *parent) argument
496 unsigned char *e_ident = (unsigned char *) map_address + offset; local
[all...]
H A Delf.h73 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon21218
91 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon21219
107 /* Fields in the e_ident array. The EI_* macros are indices into the
/external/linux-tools-perf/perf-3.12.0/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/chromium_org/third_party/libvpx/source/libvpx/build/make/
H A Dobj_int_extract.c235 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon12969
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/libvpx/libvpx/build/make/
H A Dobj_int_extract.c235 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon24766
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/chromium_org/courgette/
H A Dtypes_elf.h22 unsigned char e_ident[16]; member in struct:Elf32_Ehdr
/external/qemu/hw/core/
H A Dloader.c312 uint8_t e_ident[EI_NIDENT]; local
319 if (read(fd, e_ident, sizeof(e_ident)) != sizeof(e_ident))
321 if (e_ident[0] != ELFMAG0 ||
322 e_ident[1] != ELFMAG1 ||
323 e_ident[2] != ELFMAG2 ||
324 e_ident[3] != ELFMAG3)
331 must_swab = data_order != e_ident[EI_DATA];
338 if (host_data_order != e_ident[EI_DAT
[all...]
/external/llvm/include/llvm/Object/
H A DELFTypes.h410 unsigned char e_ident[ELF::EI_NIDENT]; // ELF Identification bytes member in struct:llvm::object::Elf_Ehdr_Impl
426 return (memcmp(e_ident, ELF::ElfMagic, strlen(ELF::ElfMagic))) == 0;
428 unsigned char getFileClass() const { return e_ident[ELF::EI_CLASS]; }
429 unsigned char getDataEncoding() const { return e_ident[ELF::EI_DATA]; }
/external/chromium_org/third_party/libvpx/include/
H A Delf.h225 unsigned char e_ident[EI_NIDENT]; member in struct:elf32_hdr
245 unsigned char e_ident[EI_NIDENT]; member in struct:elf64_hdr
/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/qemu/include/
H A Delf.h1250 unsigned char e_ident[EI_NIDENT]; member in struct:elf32_hdr
1267 unsigned char e_ident[16]; /* ELF "magic number" */ member in struct:elf64_hdr
1377 #define EI_MAG0 0 /* e_ident[] indexes */
1414 #define ELFDATANONE 0 /* e_ident[EI_DATA] */
/external/valgrind/main/perf/
H A Dtinycc.c152 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon33279
170 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon33280
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 4970 milliseconds