/external/elfutils/tests/ |
update1.c | 33 Elf32_Ehdr *ehdr; local 53 ehdr = elf32_newehdr (elf); 54 if (ehdr == NULL) 64 printf (" %02x", ehdr->e_ident[i]); 69 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, 70 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize [all...] |
update3.c | 35 Elf32_Ehdr *ehdr; local 63 ehdr = elf32_newehdr (elf); 64 if (ehdr == NULL) 74 printf (" %02x", ehdr->e_ident[i]); 79 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, 80 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize [all...] |
update2.c | 33 Elf32_Ehdr *ehdr; local 54 ehdr = elf32_newehdr (elf); 55 if (ehdr == NULL) 65 printf (" %02x", ehdr->e_ident[i]); 70 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, 71 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize [all...] |
newfile.c | 22 print_ehdr (Elf32_Ehdr *ehdr) 27 printf (" %02x", ehdr->e_ident[n]); 33 ehdr->e_type, 34 ehdr->e_machine, 35 ehdr->e_version, 36 ehdr->e_entry, 37 ehdr->e_phoff, 38 ehdr->e_shoff, 39 ehdr->e_flags, 40 ehdr->e_ehsize 81 Elf32_Ehdr *ehdr = elf32_getehdr (elf); local [all...] |
update4.c | 36 Elf32_Ehdr *ehdr; local 68 ehdr = elf32_newehdr (elf); 69 if (ehdr == NULL) 79 printf (" %02x", ehdr->e_ident[i]); 84 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, 85 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize [all...] |
ecp.c | 50 GElf_Ehdr *ehdr; local 51 gelf_update_ehdr (outelf, (ehdr = gelf_getehdr (inelf, &ehdr_mem))); 53 if (ehdr->e_phnum > 0) 57 if (gelf_newphdr (outelf, ehdr->e_phnum) == 0) 61 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt)
|
saridx.c | 190 GElf_Ehdr ehdr; local 193 if (gelf_getehdr (subelf, &ehdr) == NULL) 198 ehdr.e_ident[EI_CLASS] == ELFCLASS32 201 ehdr.e_ident[EI_DATA] == ELFDATA2LSB 204 ehdr.e_type == ET_REL 206 : (ehdr.e_type == ET_EXEC 208 : (ehdr.e_type == ET_DYN 212 (ehdr.e_machine >= (sizeof (machines) 214 || machines[ehdr.e_machine] == NULL) 216 : machines[ehdr.e_machine]) [all...] |
/external/qemu/ |
elf_ops.h | 1 static void glue(bswap_ehdr, SZ)(struct elfhdr *ehdr) 3 bswap16s(&ehdr->e_type); /* Object file type */ 4 bswap16s(&ehdr->e_machine); /* Architecture */ 5 bswap32s(&ehdr->e_version); /* Object file version */ 6 bswapSZs(&ehdr->e_entry); /* Entry point virtual address */ 7 bswapSZs(&ehdr->e_phoff); /* Program header table file offset */ 8 bswapSZs(&ehdr->e_shoff); /* Section header table file offset */ 9 bswap32s(&ehdr->e_flags); /* Processor-specific flags */ 10 bswap16s(&ehdr->e_ehsize); /* ELF header size in bytes */ 11 bswap16s(&ehdr->e_phentsize); /* Program header table entry size * 184 struct elfhdr ehdr; local [all...] |
/external/elfutils/libelf/ |
gelf_getehdr.c | 48 Elf32_Ehdr *ehdr = elf->state.elf32.ehdr; local 51 if (ehdr == NULL) 56 memcpy (dest->e_ident, ehdr->e_ident, EI_NIDENT); 58 dest->name = ehdr->name 79 if (elf->state.elf64.ehdr == NULL) 82 result = memcpy (dest, elf->state.elf64.ehdr, sizeof (*dest));
|
gelf_update_ehdr.c | 46 Elf32_Ehdr *ehdr = elf->state.elf32.ehdr; local 48 if (ehdr == NULL) 66 memcpy (ehdr->e_ident, src->e_ident, EI_NIDENT); 68 ehdr->name = src->name 85 Elf64_Ehdr *ehdr = elf->state.elf64.ehdr; local 87 if (ehdr == NULL) 94 memcpy (ehdr, src, sizeof (Elf64_Ehdr));
|
elf32_updatenull.c | 39 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, 43 if (memcmp (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG) != 0) 45 memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG); 50 update_if_changed (ehdr->e_ident[EI_CLASS], ELFW(ELFCLASS,LIBELFBITS), 54 if (unlikely (ehdr->e_ident[EI_DATA] == ELFDATANONE)) 56 ehdr->e_ident[EI_DATA] = 60 else if (unlikely (ehdr->e_ident[EI_DATA] >= ELFDATANUM)) 67 && ehdr->e_ident[EI_DATA] != ELFDATA2LSB) 69 && ehdr->e_ident[EI_DATA] != ELFDATA2MSB)) [all...] |
elf_getshstrndx.c | 51 assert (offsetof (struct Elf, state.elf.ehdr) 52 == offsetof (struct Elf, state.elf32.ehdr)); 53 assert (sizeof (elf->state.elf.ehdr) 54 == sizeof (elf->state.elf32.ehdr)); 55 assert (offsetof (struct Elf, state.elf.ehdr) 56 == offsetof (struct Elf, state.elf64.ehdr)); 57 assert (sizeof (elf->state.elf.ehdr) 58 == sizeof (elf->state.elf64.ehdr)); 60 if (unlikely (elf->state.elf.ehdr == NULL)) 70 ? elf->state.elf32.ehdr->e_shstrnd [all...] |
elf32_newehdr.c | 32 ElfW2(LIBELFBITS,Ehdr) * 36 ElfW2(LIBELFBITS,Ehdr) *result; 59 if (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL) 62 elf->state.ELFW(elf,LIBELFBITS).ehdr = 66 memset (elf->state.ELFW(elf,LIBELFBITS).ehdr, '\0', 67 sizeof (ElfW2(LIBELFBITS,Ehdr))); 73 result = elf->state.ELFW(elf,LIBELFBITS).ehdr;
|
elf32_updatefile.c | 86 ElfW2(LIBELFBITS,Ehdr) *ehdr; 91 ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 98 assert (sizeof (ElfW2(LIBELFBITS,Ehdr)) 112 (*fctp) ((char *) elf->map_address + elf->start_offset, ehdr, 113 sizeof (ElfW2(LIBELFBITS,Ehdr)), 1); 116 memcpy (elf->map_address + elf->start_offset, ehdr, 117 sizeof (ElfW2(LIBELFBITS,Ehdr))); 134 if (ehdr->e_phoff > ehdr->e_ehsize [all...] |
elf_getident.c | 47 || (offsetof (struct Elf, state.elf32.ehdr) 48 == offsetof (struct Elf, state.elf64.ehdr)) 49 ? elf->state.elf32.ehdr->e_ident 50 : elf->state.elf64.ehdr->e_ident);
|
elf32_getehdr.c | 32 ElfW2(LIBELFBITS,Ehdr) * 36 ElfW2(LIBELFBITS,Ehdr) *result; 58 result = elf->state.ELFW(elf,LIBELFBITS).ehdr;
|
elf32_getphdr.c | 69 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 74 phnum = ehdr->e_phnum; 86 if (ehdr->e_ident[EI_DATA] == MY_ELFDATA 88 || (ehdr->e_phoff 92 ((char *) elf->map_address + elf->start_offset + ehdr->e_phoff); 114 || (ehdr->e_phoff 118 + elf->start_offset + ehdr->e_phoff); 123 elf->start_offset + ehdr->e_phoff) [all...] |
elf32_getshdr.c | 42 if (unlikely (scn->elf->state.elf.ehdr == NULL)) 59 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 93 assert (ehdr->e_ident[EI_DATA] != MY_ELFDATA 95 && (ehdr->e_shoff 101 || (ehdr->e_shoff 105 + elf->start_offset + ehdr->e_shoff); 110 + elf->start_offset + ehdr->e_shoff), 133 elf->start_offset + ehdr->e_shoff) != size [all...] |
elf32_newphdr.c | 60 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL)) 79 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = 0; 81 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize = 91 else if (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum != count 108 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = count; 110 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize = 124 assert (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize
|
/external/elfutils/src/ |
elflint.c | 320 section_name (Ebl *ebl, GElf_Ehdr *ehdr, int idx) 354 check_elf_header (Ebl *ebl, GElf_Ehdr *ehdr, size_t size) 360 if (ehdr->e_ident[EI_MAG0] != ELFMAG0) 362 if (ehdr->e_ident[EI_MAG1] != ELFMAG1) 364 if (ehdr->e_ident[EI_MAG2] != ELFMAG2) 366 if (ehdr->e_ident[EI_MAG3] != ELFMAG3) 369 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32 370 && ehdr->e_ident[EI_CLASS] != ELFCLASS64) 372 EI_CLASS, ehdr->e_ident[EI_CLASS]); 374 if (ehdr->e_ident[EI_DATA] != ELFDATA2LS 2543 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local [all...] |
/external/elfutils/libasm/ |
asm_begin.c | 40 GElf_Ehdr *ehdr; local 59 ehdr = gelf_getehdr (result->out.elf, &ehdr_mem); 61 assert (ehdr != NULL); 64 ehdr->e_type = ET_REL; 66 ehdr->e_version = EV_CURRENT; 69 ehdr->e_machine = machine; 71 ehdr->e_ident[EI_CLASS] = klass; 72 ehdr->e_ident[EI_DATA] = data; 74 memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG); 77 (void) gelf_update_ehdr (result->out.elf, ehdr); [all...] |
/external/tcpdump/ |
print-ipfc.c | 84 struct ether_header ehdr; local 94 extract_ipfc_addrs(ipfcp, (char *)ESRC(&ehdr), (char *)EDST(&ehdr)); 97 ipfc_hdr_print(ipfcp, length, ESRC(&ehdr), EDST(&ehdr)); 105 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr), 113 ESRC(&ehdr), EDST(&ehdr));
|
print-token.c | 105 struct ether_header ehdr; local 119 extract_token_addrs(trp, (char*)ESRC(&ehdr), (char*)EDST(&ehdr)); 124 *ESRC(&ehdr) &= 0x7f; 127 token_hdr_print(trp, length, ESRC(&ehdr), EDST(&ehdr)); 146 token_hdr_print(trp, length, ESRC(&ehdr), EDST(&ehdr)); 158 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr), [all...] |
/bionic/libc/arch-x86/bionic/ |
dl_iterate_phdr_static.c | 58 Elf32_Ehdr *ehdr = (Elf32_Ehdr *) &__executable_start; local 59 Elf32_Phdr *phdr = (Elf32_Phdr *)((unsigned long)ehdr + ehdr->e_phoff); 63 if (ehdr->e_ident[EI_MAG0] != ELFMAG0) return -1; 64 if (ehdr->e_ident[EI_MAG1] != ELFMAG1) return -1; 65 if (ehdr->e_ident[EI_MAG2] != ELFMAG2) return -1; 66 if (ehdr->e_ident[EI_MAG3] != ELFMAG3) return -1; 71 dl_info.dlpi_phnum = ehdr->e_phnum;
|
/external/elfutils/libdw/ |
dwarf_begin_elf.c | 51 check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp) 76 const char *scnname = elf_strptr (result->elf, ehdr->e_shstrndx, 130 global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Dwarf_Cmd cmd) 135 check_section (result, ehdr, scn, false); 142 scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Dwarf_Cmd cmd, 171 check_section (result, ehdr, scn, true); 184 GElf_Ehdr *ehdr; local 189 ehdr = gelf_getehdr (elf, &ehdr_mem); 190 if (ehdr == NULL) 213 if ((BYTE_ORDER == LITTLE_ENDIAN && ehdr->e_ident[EI_DATA] == ELFDATA2MSB [all...] |