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

/external/elfutils/libelf/
H A Delf_begin.c95 get_shnum (void *map_address, unsigned char *e_ident, int fildes, off_t offset, argument
110 bool is32 = e_ident[EI_CLASS] == ELFCLASS32;
113 if (e_ident[EI_DATA] == MY_ELFDATA
115 || (((size_t) e_ident
118 ehdr.p = e_ident;
130 ehdr_mem.e32.e_shnum = ((Elf32_Ehdr *) e_ident)->e_shnum;
131 ehdr_mem.e32.e_shoff = ((Elf32_Ehdr *) e_ident)->e_shoff;
134 memcpy (&ehdr_mem, e_ident, sizeof (Elf32_Ehdr));
136 if (e_ident[EI_DATA] != MY_ELFDATA)
146 ehdr_mem.e64.e_shnum = ((Elf64_Ehdr *) e_ident)
266 file_read_elf(int fildes, void *map_address, unsigned char *e_ident, off_t offset, size_t maxsize, Elf_Cmd cmd, Elf *parent) argument
490 unsigned char *e_ident = (unsigned char *) map_address + offset; local
[all...]
H A Delf.h79 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon18447
97 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon18448
113 /* Fields in the e_ident array. The EI_* macros are indices into the
/external/libvpx/libvpx/build/make/
H A Dobj_int_extract.c219 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon21474
228 COPY_STRUCT(&elf->e_ident, elf->buf, 0, elf->sz);
229 res = elf->e_ident[EI_MAG0] == ELFMAG0;
230 res &= elf->e_ident[EI_MAG1] == ELFMAG1;
231 res &= elf->e_ident[EI_MAG2] == ELFMAG2;
232 res &= elf->e_ident[EI_MAG3] == ELFMAG3;
233 res &= elf->e_ident[EI_CLASS] == ELFCLASS32
234 || elf->e_ident[EI_CLASS] == ELFCLASS64;
235 res &= elf->e_ident[EI_DATA] == ELFDATA2LSB;
239 elf->le_data = elf->e_ident[EI_DAT
[all...]
/external/chromium_org/courgette/
H A Dtypes_elf.h22 unsigned char e_ident[16]; member in struct:Elf32_Ehdr
/external/qemu/elff/
H A Delff_elf.h95 unsigned char e_ident[EI_NIDENT]; member in union:Elf_CommonHdr::__anon25560
/external/qemu/
H A Dloader.c311 uint8_t e_ident[EI_NIDENT]; local
318 if (read(fd, e_ident, sizeof(e_ident)) != sizeof(e_ident))
320 if (e_ident[0] != ELFMAG0 ||
321 e_ident[1] != ELFMAG1 ||
322 e_ident[2] != ELFMAG2 ||
323 e_ident[3] != ELFMAG3)
330 must_swab = data_order != e_ident[EI_DATA];
337 if (host_data_order != e_ident[EI_DAT
[all...]
H A Delf.h1002 unsigned char e_ident[EI_NIDENT]; member in struct:elf32_hdr
1019 unsigned char e_ident[16]; /* ELF "magic number" */ member in struct:elf64_hdr
1129 #define EI_MAG0 0 /* e_ident[] indexes */
1166 #define ELFDATANONE 0 /* e_ident[EI_DATA] */
/external/grub/stage2/
H A Di386-elf.h65 unsigned char e_ident[EI_NIDENT]; /* basic identification block */ member in struct:__anon18766
96 ((h.e_ident[EI_MAG0] == ELFMAG0) & (h.e_ident[EI_MAG1] == ELFMAG1) \
97 & (h.e_ident[EI_MAG2] == ELFMAG2) & (h.e_ident[EI_MAG3] == ELFMAG3) \
98 & (h.e_ident[EI_CLASS] == ELFCLASS32) & (h.e_ident[EI_DATA] == ELFDATA2LSB) \
99 & (h.e_ident[EI_VERSION] == EV_CURRENT) & (h.e_type == ET_EXEC) \
/external/llvm/include/llvm/Object/
H A DELF.h440 unsigned char e_ident[ELF::EI_NIDENT]; // ELF Identification bytes member in struct:llvm::object::Elf_Ehdr_Impl
456 return (memcmp(e_ident, ELF::ElfMagic, strlen(ELF::ElfMagic))) == 0;
458 unsigned char getFileClass() const { return e_ident[ELF::EI_CLASS]; }
459 unsigned char getDataEncoding() const { return e_ident[ELF::EI_DATA]; }
2745 switch(Header->e_ident[ELF::EI_CLASS]) {
/external/llvm/include/llvm/Support/
H A DELF.h47 // e_ident size and indices.
59 EI_NIDENT = 16 // Number of bytes in e_ident.
63 unsigned char e_ident[EI_NIDENT]; // ELF Identification bytes member in struct:llvm::ELF::Elf32_Ehdr
78 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0;
80 unsigned char getFileClass() const { return e_ident[EI_CLASS]; }
81 unsigned char getDataEncoding() const { return e_ident[EI_DATA]; }
87 unsigned char e_ident[EI_NIDENT]; member in struct:llvm::ELF::Elf64_Ehdr
102 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0;
104 unsigned char getFileClass() const { return e_ident[EI_CLASS]; }
105 unsigned char getDataEncoding() const { return e_ident[EI_DAT
[all...]
/external/valgrind/main/perf/
H A Dtinycc.c152 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon28819
170 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon28820
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 169 milliseconds