/external/elfutils/libelf/ |
H A D | elf_getident.c | 59 ? elf->state.elf32.ehdr->e_ident 60 : elf->state.elf64.ehdr->e_ident);
|
H A D | elf_begin.c | 75 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 513 unsigned char *e_ident = (unsigned char *) map_address + offset; local [all...] |
H A D | gelf_update_ehdr.c | 78 memcpy (ehdr->e_ident, src->e_ident, EI_NIDENT);
|
H A D | elf-knowledge.h | 102 && (Ehdr)->e_ident[EI_CLASS] == ELFCLASS64) ? 8 : 4)
|
H A D | elf_getshdrstrndx.c | 110 && elf->state.elf32.ehdr->e_ident[EI_DATA] == MY_ELFDATA 147 if (elf->state.elf32.ehdr->e_ident[EI_DATA] != MY_ELFDATA) 171 && elf->state.elf64.ehdr->e_ident[EI_DATA] == MY_ELFDATA 208 if (elf->state.elf64.ehdr->e_ident[EI_DATA] != MY_ELFDATA)
|
H A D | gelf_getehdr.c | 71 memcpy (dest->e_ident, ehdr->e_ident, EI_NIDENT);
|
/external/syslinux/gpxe/src/arch/i386/image/ |
H A D | elfboot.c | 76 static const uint8_t e_ident[] = { local 89 if ( memcmp ( ehdr.e_ident, e_ident, sizeof ( e_ident ) ) != 0 ) {
|
/external/elfutils/tests/ |
H A D | update1.c | 69 printf (" %02x", ehdr->e_ident[i]); 80 ehdr->e_ident[0] = 42; 81 ehdr->e_ident[4] = 1; 82 ehdr->e_ident[5] = 1; 83 ehdr->e_ident[6] = 2; 84 ehdr->e_ident[9] = 2; 107 printf (" %02x", ehdr->e_ident[i]);
|
H A D | update2.c | 70 printf (" %02x", ehdr->e_ident[i]); 81 ehdr->e_ident[0] = 42; 82 ehdr->e_ident[4] = 1; 83 ehdr->e_ident[5] = 1; 84 ehdr->e_ident[6] = 2; 130 printf (" %02x", ehdr->e_ident[i]);
|
H A D | update3.c | 79 printf (" %02x", ehdr->e_ident[i]); 90 ehdr->e_ident[0] = 42; 91 ehdr->e_ident[4] = 1; 92 ehdr->e_ident[5] = 1; 93 ehdr->e_ident[6] = 2; 185 printf (" %02x", ehdr->e_ident[i]);
|
/external/valgrind/coregrind/ |
H A D | launcher-linux.c | 207 (header.ehdr32.e_ident[EI_OSABI] == ELFOSABI_SYSV || 208 header.ehdr32.e_ident[EI_OSABI] == ELFOSABI_SOLARIS)) { 214 (header.ehdr32.e_ident[EI_OSABI] == ELFOSABI_SYSV || 215 header.ehdr32.e_ident[EI_OSABI] == ELFOSABI_LINUX)) { 220 (header.ehdr32.e_ident[EI_OSABI] == ELFOSABI_SYSV || 221 header.ehdr32.e_ident[EI_OSABI] == ELFOSABI_LINUX)) { 226 (header.ehdr32.e_ident[EI_OSABI] == ELFOSABI_SYSV || 227 header.ehdr32.e_ident[EI_OSABI] == ELFOSABI_LINUX)) { 233 (header.ehdr32.e_ident[EI_OSABI] == ELFOSABI_SYSV || 234 header.ehdr32.e_ident[EI_OSAB [all...] |
/external/libunwind/src/ |
H A D | elfxx.h | 97 uint8_t* e_ident = (uint8_t*) ei->u.mapped.image; local 99 && e_ident[EI_CLASS] == ELF_CLASS && e_ident[EI_VERSION] != EV_NONE 100 && e_ident[EI_VERSION] <= EV_CURRENT); 104 uint8_t e_ident[EI_NIDENT]; local 106 if (SELFMAG != elf_w (memory_read) (ei, start, e_ident, SELFMAG, false)) { 109 if (memcmp (e_ident, ELFMAG, SELFMAG) != 0) { 114 ei, start + SELFMAG, e_ident + SELFMAG, EI_NIDENT - SELFMAG, false)) { 117 return e_ident[EI_CLASS] == ELF_CLASS && e_ident[EI_VERSIO [all...] |
/external/elfutils/libdw/ |
H A D | encoded-value.h | 41 encoded_value_size (const Elf_Data *data, const unsigned char e_ident[], argument 57 return e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8; 79 width = width ?: cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8; 89 Dwarf eh_dbg = { .other_byte_order = MY_ELFDATA != cache->e_ident[EI_DATA] }; 138 cache->e_ident, 217 size_t ptrsize = encoded_value_size (NULL, cache->e_ident,
|
H A D | cfi.h | 83 const unsigned char *e_ident; /* For EI_DATA and EI_CLASS. */ member in struct:Dwarf_CFI_s 224 #define BYTE_ORDER_DUMMY(var, e_ident) \ 226 { ((BYTE_ORDER == LITTLE_ENDIAN && e_ident[EI_DATA] == ELFDATA2MSB) \ 227 || (BYTE_ORDER == BIG_ENDIAN && e_ident[EI_DATA] == ELFDATA2LSB)) }
|
H A D | dwarf_frame_cfa.c | 62 fs->cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8, 4,
|
H A D | dwarf_next_cfi.c | 40 dwarf_next_cfi (const unsigned char e_ident[], argument 48 BYTE_ORDER_DUMMY (dw, e_ident); 137 uint_fast8_t address_size = e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8; 215 += encoded_value_size (data, e_ident, encoding, NULL); 219 bytes += encoded_value_size (data, e_ident, encoding, bytes);
|
H A D | cie.c | 94 += encoded_value_size (&cache->data->d, cache->e_ident, 104 data += encoded_value_size (&cache->data->d, cache->e_ident, 125 = cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8; 170 int result = INTUSE(dwarf_next_cfi) (cache->e_ident,
|
H A D | dwarf_getcfi.c | 59 cfi->e_ident = (unsigned char *) elf_getident (dbg->elf, NULL);
|
H A D | dwarf_getcfi_elf.c | 53 cfi->e_ident = (unsigned char *) elf_getident (elf, NULL); 54 if (cfi->e_ident == NULL) 61 if ((BYTE_ORDER == LITTLE_ENDIAN && cfi->e_ident[EI_DATA] == ELFDATA2MSB) 62 || (BYTE_ORDER == BIG_ENDIAN && cfi->e_ident[EI_DATA] == ELFDATA2LSB)) 96 .e_ident = ehdr->e_ident, 150 vsize = encoded_value_size (data, ehdr->e_ident, search_table_encoding, 246 vsize = encoded_value_size (hdr_data, ehdr->e_ident,
|
/external/syslinux/com32/mboot/ |
H A D | solaris.c | 42 return eh->e_ident[EI_OSABI] == 6; /* ABI == Solaris */
|
/external/minijail/ |
H A D | elfparse.h | 34 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon16092 52 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon16093
|
/external/google-breakpad/src/common/linux/ |
H A D | elf_core_dump.cc | 111 header->e_ident[0] == ELFMAG0 && 112 header->e_ident[1] == ELFMAG1 && 113 header->e_ident[2] == ELFMAG2 && 114 header->e_ident[3] == ELFMAG3 && 115 header->e_ident[4] == kClass &&
|
/external/elfutils/backends/ |
H A D | ppc64_resolve_sym.c | 58 ehdr->e_ident[EI_DATA]) != NULL)
|
/external/google-breakpad/src/common/solaris/ |
H A D | file_id.cc | 89 if (elf_header.e_ident[EI_MAG0] != ELFMAG0 || 90 elf_header.e_ident[EI_MAG1] != ELFMAG1 || 91 elf_header.e_ident[EI_MAG2] != ELFMAG2 || 92 elf_header.e_ident[EI_MAG3] != ELFMAG3) {
|
/external/syslinux/efi/ |
H A D | wrapper.c | 196 if (e32_hdr.e_ident[EI_CLASS] == ELFCLASS32) { 197 id = e32_hdr.e_ident; 204 else if (e32_hdr.e_ident[EI_CLASS] == ELFCLASS64) { 211 id = e64_hdr.e_ident; 240 if (e32_hdr.e_ident[EI_CLASS] == ELFCLASS32) { 255 } else if (e32_hdr.e_ident[EI_CLASS] == ELFCLASS64) {
|