/external/elfutils/0.153/libelf/ |
H A D | 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));
|
H A D | 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));
|
H A D | elf_getdata.c | 239 GElf_Ehdr *ehdr = __gelf_getehdr_rdlock (elf, &ehdr_mem); local 240 entsize = SH_ENTSIZE_HASH (ehdr); 316 GElf_Ehdr *ehdr = __gelf_getehdr_rdlock (elf, &ehdr_mem); local 318 = (SH_ENTSIZE_HASH (ehdr) == 4 ? ELF_T_WORD : ELF_T_XWORD); 325 || (offsetof (struct Elf, state.elf32.ehdr) 326 == offsetof (struct Elf, state.elf64.ehdr))) 328 elf->state.elf32.ehdr->e_ident[EI_VERSION]; 331 elf->state.elf64.ehdr->e_ident[EI_VERSION]; 463 || (offsetof (struct Elf, state.elf32.ehdr) 464 == offsetof (struct Elf, state.elf64.ehdr)) [all...] |
/external/elfutils/0.153/libasm/ |
H A D | 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...] |
H A D | disasm_cb.c | 118 GElf_Ehdr *ehdr = gelf_getehdr (ctx->elf, &ehdr_mem); local 119 if (ehdr == NULL) 122 switch (ehdr->e_type)
|
/external/elfutils/0.153/backends/ |
H A D | ppc64_symbol.c | 91 ppc64_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, argument 96 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name); 106 GElf_Ehdr *ehdr __attribute__ ((unused)))
|
H A D | ppc_symbol.c | 81 find_dyn_got (Elf *elf, GElf_Ehdr *ehdr, GElf_Addr *addr) argument 83 for (int i = 0; i < ehdr->e_phnum; ++i) 117 ppc_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, const GElf_Sym *sym, argument 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) argument 157 return ! find_dyn_got (elf, ehdr, &addr);
|
H A D | common-reloc.c | 104 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local 105 assert (ehdr != NULL); 106 uint8_t type = ehdr->e_type;
|
/external/elfutils/0.153/libebl/ |
H A D | eblsectionstripp.c | 59 ebl_section_strip_p (Ebl *ebl, const GElf_Ehdr *ehdr, const GElf_Shdr *shdr, argument 77 const char *s_l = elf_strptr (ebl->elf, ehdr->e_shstrndx,
|
/external/tcpdump/ |
H A D | 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));
|
H A D | print-fddi.c | 245 struct ether_header ehdr; local 256 extract_fddi_addrs(fddip, (char *)ESRC(&ehdr), (char *)EDST(&ehdr)); 259 fddi_hdr_print(fddip, length, ESRC(&ehdr), EDST(&ehdr)); 269 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr), 277 ESRC(&ehdr), EDST(&ehdr)); 290 fddi_hdr_print(fddip, length + FDDI_HDRLEN, ESRC(&ehdr), [all...] |
H A D | print-token.c | 106 struct ether_header ehdr; local 120 extract_token_addrs(trp, (char*)ESRC(&ehdr), (char*)EDST(&ehdr)); 125 *ESRC(&ehdr) &= 0x7f; 128 token_hdr_print(trp, length, ESRC(&ehdr), EDST(&ehdr)); 156 token_hdr_print(trp, length, ESRC(&ehdr), EDST(&ehdr)); 167 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr), [all...] |
/external/chromium_org/third_party/android_crazy_linker/src/src/ |
H A D | crazy_linker_elf_view.cpp | 64 const ELF::Ehdr* ehdr = reinterpret_cast<const ELF::Ehdr*>(elf_addr); local 65 ELF::Addr offset = ehdr->e_phoff;
|
H A D | crazy_linker_elf_loader.cpp | 235 const ELF::Ehdr* ehdr = (const ELF::Ehdr*)(void*)elf_addr; local 236 ELF::Addr offset = ehdr->e_phoff; 237 return CheckPhdr((ELF::Addr)ehdr + offset, error);
|
/external/elfutils/0.153/libdw/ |
H A D | dwarf_begin_elf.c | 91 check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp) argument 121 const char *scnname = elf_strptr (result->elf, ehdr->e_shstrndx, 251 global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr) argument 256 result = check_section (result, ehdr, scn, false); 263 scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp) argument 293 result = check_section (result, ehdr, scn, true); 308 GElf_Ehdr *ehdr; local 313 ehdr = gelf_getehdr (elf, &ehdr_mem); 314 if (ehdr == NULL) 339 if ((BYTE_ORDER == LITTLE_ENDIAN && ehdr [all...] |
/external/elfutils/0.153/src/ |
H A D | arlib.c | 227 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local 228 if (ehdr == NULL) 233 if (ehdr->e_type == ET_REL) 235 else if (ehdr->e_type == ET_EXEC || ehdr->e_type == ET_DYN) 277 if (ehdr->e_type != ET_REL)
|
/external/libunwind/src/ia64/ |
H A D | Gfind_unwind_table.c | 39 Elf64_Ehdr *ehdr = edi->ei.image; local 64 soff = ehdr->e_shoff; 65 str_soff = soff + (ehdr->e_shstrndx * ehdr->e_shentsize); 67 if (soff + ehdr->e_shnum * ehdr->e_shentsize > edi->ei.size) 70 soff + ehdr->e_shnum * ehdr->e_shentsize, 78 for (i = 0; i < ehdr->e_shnum; ++i) 86 shdr = (Elf64_Shdr *) (((char *) shdr) + ehdr 100 Elf64_Ehdr *ehdr; local [all...] |
/external/qemu/include/hw/ |
H A D | 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 184 struct elfhdr ehdr; local [all...] |
/external/chromium_org/components/nacl/loader/nonsfi/ |
H A D | elf_loader.cc | 47 NaClErrorCode ValidateElfHeader(const ElfW(Ehdr)& ehdr) { 48 if (std::memcmp(ehdr.e_ident, ELFMAG, SELFMAG)) { 54 if (ehdr.e_ident[EI_CLASS] != ELFCLASS32) { 59 if (ehdr.e_ident[EI_CLASS] != ELFCLASS64) { 67 if (ehdr.e_type != ET_DYN) { 72 if (ehdr.e_machine != NACL_ELF_E_MACHINE) { 74 << base::HexEncode(&ehdr.e_machine, sizeof(ehdr.e_machine)); 78 if (ehdr.e_version != EV_CURRENT) { 80 << base::HexEncode(&ehdr 248 ElfW(Ehdr) ehdr; member in struct:nacl::nonsfi::ElfImage::Data [all...] |
/external/elfutils/0.153/libdwfl/ |
H A D | dwfl_module_build_id.c | 109 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local 111 if (unlikely (ehdr == NULL)
|
H A D | dwfl_report_elf.c | 67 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem); local 68 if (ehdr == NULL) 78 switch (ehdr->e_type) 258 m->e_type = ehdr->e_type;
|
H A D | 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 [all...] |
/external/ltrace/ |
H A D | ltrace-elf.h | 44 GElf_Ehdr ehdr; member in struct:ltelf
|
/external/valgrind/main/coregrind/ |
H A D | launcher-linux.c | 180 const Elf32_Ehdr *ehdr = (Elf32_Ehdr *)header; local 183 if (ehdr->e_machine == EM_386 && 184 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || 185 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { 189 if (ehdr->e_machine == EM_ARM && 190 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || 191 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { 195 if (ehdr->e_machine == EM_MIPS && 196 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || 197 ehdr 216 const Elf64_Ehdr *ehdr = (Elf64_Ehdr *)header; local [all...] |
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
H A D | elf_mem_image.cc | 100 const T* GetTableElement(const ElfW(Ehdr) *ehdr, member in namespace:base::__anon14846 104 return reinterpret_cast<const T*>(reinterpret_cast<const char *>(ehdr)
|