/external/elfutils/tests/ |
update1.c | 45 Elf32_Ehdr *ehdr; local 65 ehdr = elf32_newehdr (elf); 66 if (ehdr == NULL) 76 printf (" %02x", ehdr->e_ident[i]); 81 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, 82 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize [all...] |
update2.c | 45 Elf32_Ehdr *ehdr; local 66 ehdr = elf32_newehdr (elf); 67 if (ehdr == NULL) 77 printf (" %02x", ehdr->e_ident[i]); 82 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, 83 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize [all...] |
update3.c | 47 Elf32_Ehdr *ehdr; local 75 ehdr = elf32_newehdr (elf); 76 if (ehdr == NULL) 86 printf (" %02x", ehdr->e_ident[i]); 91 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, 92 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize [all...] |
newfile.c | 34 print_ehdr (Elf32_Ehdr *ehdr) 39 printf (" %02x", ehdr->e_ident[n]); 45 ehdr->e_type, 46 ehdr->e_machine, 47 ehdr->e_version, 48 ehdr->e_entry, 49 ehdr->e_phoff, 50 ehdr->e_shoff, 51 ehdr->e_flags, 52 ehdr->e_ehsize 93 Elf32_Ehdr *ehdr = elf32_getehdr (elf); local [all...] |
update4.c | 48 Elf32_Ehdr *ehdr; local 80 ehdr = elf32_newehdr (elf); 81 if (ehdr == NULL) 91 printf (" %02x", ehdr->e_ident[i]); 96 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, 97 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize [all...] |
saridx.c | 202 GElf_Ehdr ehdr; local 205 if (gelf_getehdr (subelf, &ehdr) == NULL) 210 ehdr.e_ident[EI_CLASS] == ELFCLASS32 213 ehdr.e_ident[EI_DATA] == ELFDATA2LSB 216 ehdr.e_type == ET_REL 218 : (ehdr.e_type == ET_EXEC 220 : (ehdr.e_type == ET_DYN 224 (ehdr.e_machine >= (sizeof (machines) 226 || machines[ehdr.e_machine] == NULL) 228 : machines[ehdr.e_machine]) [all...] |
ecp.c | 62 GElf_Ehdr *ehdr; local 63 gelf_update_ehdr (outelf, (ehdr = gelf_getehdr (inelf, &ehdr_mem))); 65 if (ehdr->e_phnum > 0) 69 if (gelf_newphdr (outelf, ehdr->e_phnum) == 0) 73 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt)
|
/bionic/libc/bionic/ |
dl_iterate_phdr_static.c | 50 Elf32_Ehdr *ehdr = (Elf32_Ehdr *) &__executable_start; local 51 Elf32_Phdr *phdr = (Elf32_Phdr *)((unsigned long)ehdr + ehdr->e_phoff); 55 if (ehdr->e_ident[EI_MAG0] != ELFMAG0) return -1; 56 if (ehdr->e_ident[EI_MAG1] != ELFMAG1) return -1; 57 if (ehdr->e_ident[EI_MAG2] != ELFMAG2) return -1; 58 if (ehdr->e_ident[EI_MAG3] != ELFMAG3) return -1; 63 dl_info.dlpi_phnum = ehdr->e_phnum;
|
/external/elfutils/libebl/ |
ebl_check_special_symbol.c | 59 ebl_check_special_symbol (ebl, ehdr, sym, name, destshdr) 61 GElf_Ehdr *ehdr; 69 return ebl->check_special_symbol (ebl->elf, ehdr, sym, name, destshdr);
|
eblbsspltp.c | 59 ebl_bss_plt_p (ebl, ehdr) 61 GElf_Ehdr *ehdr; 63 return ebl == NULL ? false : ebl->bss_plt_p (ebl->elf, ehdr);
|
/external/elfutils/libelf/ |
elf_getident.c | 80 || (offsetof (struct Elf, state.elf32.ehdr) 81 == offsetof (struct Elf, state.elf64.ehdr)) 82 ? elf->state.elf32.ehdr->e_ident 83 : elf->state.elf64.ehdr->e_ident);
|
gelf_update_ehdr.c | 79 Elf32_Ehdr *ehdr = elf->state.elf32.ehdr; local 81 if (ehdr == NULL) 99 memcpy (ehdr->e_ident, src->e_ident, EI_NIDENT); 101 ehdr->name = src->name 118 Elf64_Ehdr *ehdr = elf->state.elf64.ehdr; local 120 if (ehdr == NULL) 127 memcpy (ehdr, src, sizeof (Elf64_Ehdr));
|
elf_getshstrndx.c | 86 assert (offsetof (struct Elf, state.elf.ehdr) 87 == offsetof (struct Elf, state.elf32.ehdr)); 88 assert (sizeof (elf->state.elf.ehdr) 89 == sizeof (elf->state.elf32.ehdr)); 90 assert (offsetof (struct Elf, state.elf.ehdr) 91 == offsetof (struct Elf, state.elf64.ehdr)); 92 assert (sizeof (elf->state.elf.ehdr) 93 == sizeof (elf->state.elf64.ehdr)); 95 if (unlikely (elf->state.elf.ehdr == NULL)) 105 ? elf->state.elf32.ehdr->e_shstrnd [all...] |
elf32_updatenull.c | 72 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, 76 if (memcmp (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG) != 0) 78 memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG); 83 update_if_changed (ehdr->e_ident[EI_CLASS], ELFW(ELFCLASS,LIBELFBITS), 87 if (unlikely (ehdr->e_ident[EI_DATA] == ELFDATANONE)) 89 ehdr->e_ident[EI_DATA] = 93 else if (unlikely (ehdr->e_ident[EI_DATA] >= ELFDATANUM)) 100 && ehdr->e_ident[EI_DATA] != ELFDATA2LSB) 102 && ehdr->e_ident[EI_DATA] != ELFDATA2MSB)) [all...] |
gelf_getehdr.c | 79 /* The following is an optimization: the ehdr element is at the same 81 if (offsetof (struct Elf, state.elf32.ehdr) 82 != offsetof (struct Elf, state.elf64.ehdr)) 85 if (unlikely (elf->state.elf64.ehdr == NULL)) 90 Elf32_Ehdr *ehdr = elf->state.elf32.ehdr; local 93 memcpy (dest->e_ident, ehdr->e_ident, EI_NIDENT); 95 dest->name = ehdr->name 113 result = memcpy (dest, elf->state.elf64.ehdr, sizeof (*dest));
|
elf32_newehdr.c | 65 ElfW2(LIBELFBITS,Ehdr) * 69 ElfW2(LIBELFBITS,Ehdr) *result; 92 if (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL) 95 elf->state.ELFW(elf,LIBELFBITS).ehdr = 99 memset (elf->state.ELFW(elf,LIBELFBITS).ehdr, '\0', 100 sizeof (ElfW2(LIBELFBITS,Ehdr))); 106 result = elf->state.ELFW(elf,LIBELFBITS).ehdr;
|
elf_newdata.c | 77 || (offsetof (struct Elf, state.elf32.ehdr) 78 == offsetof (struct Elf, state.elf64.ehdr)) 79 ? scn->elf->state.elf32.ehdr == NULL 80 : scn->elf->state.elf64.ehdr == NULL)
|
/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...] |
/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/valgrind/main/coregrind/ |
launcher-linux.c | 168 const Elf32_Ehdr *ehdr = (Elf32_Ehdr *)header; local 171 if (ehdr->e_machine == EM_386 && 172 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || 173 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { 177 if (ehdr->e_machine == EM_ARM && 178 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || 179 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { 183 if (ehdr->e_machine == EM_MIPS && 184 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || 185 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) 204 const Elf64_Ehdr *ehdr = (Elf64_Ehdr *)header; local [all...] |
/external/elfutils/libdwfl/ |
elf-from-memory.c | 117 } ehdr; local 127 .d_buf = &ehdr, 128 .d_size = sizeof ehdr, 147 phoff = ehdr.e32.e_phoff; 148 phnum = ehdr.e32.e_phnum; 149 phentsize = ehdr.e32.e_phentsize; 152 shdrs_end = ehdr.e32.e_shoff + ehdr.e32.e_shnum * ehdr.e32.e_shentsize; 159 phoff = ehdr.e64.e_phoff [all...] |
/external/elfutils/libdw/ |
dwarf_begin_elf.c | 88 check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp) 118 const char *scnname = elf_strptr (result->elf, ehdr->e_shstrndx, 176 global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr) 181 result = check_section (result, ehdr, scn, false); 188 scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp) 216 result = check_section (result, ehdr, scn, true); 231 GElf_Ehdr *ehdr; local 236 ehdr = gelf_getehdr (elf, &ehdr_mem); 237 if (ehdr == NULL) 260 if ((BYTE_ORDER == LITTLE_ENDIAN && ehdr->e_ident[EI_DATA] == ELFDATA2MSB [all...] |
/external/elfutils/backends/ |
ppc_symbol.c | 81 find_dyn_got (Elf *elf, GElf_Ehdr *ehdr, GElf_Addr *addr) 83 for (int i = 0; i < ehdr->e_phnum; ++i) 117 ppc_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, const GElf_Sym *sym, 127 if (find_dyn_got (elf, ehdr, &gotaddr)) 134 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name); 154 ppc_bss_plt_p (Elf *elf, GElf_Ehdr *ehdr) 157 return ! find_dyn_got (elf, ehdr, &addr);
|
/external/elfutils/libasm/ |
asm_begin.c | 69 GElf_Ehdr *ehdr; local 89 ehdr = gelf_getehdr (result->out.elf, &ehdr_mem); 91 assert (ehdr != NULL); 94 ehdr->e_type = ET_REL; 96 ehdr->e_version = EV_CURRENT; 99 ehdr->e_machine = ebl_get_elfmachine (ebl); 100 ehdr->e_ident[EI_CLASS] = class; 101 ehdr->e_ident[EI_DATA] = ebl_get_elfdata (ebl); 103 memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG); 106 (void) gelf_update_ehdr (result->out.elf, ehdr); [all...] |