HomeSort by relevance Sort by last modified time
    Searched defs:ehdr (Results 51 - 75 of 93) sorted by null

1 23 4

  /external/elfutils/libasm/
asm_end.c 81 GElf_Ehdr *ehdr; local
436 ehdr = gelf_getehdr (ctx->out.elf, &ehdr_mem);
437 assert (ehdr != NULL);
457 ehdr->e_shstrndx = SHN_XINDEX;
460 ehdr->e_shstrndx = elf_ndxscn (shstrscn);
462 gelf_update_ehdr (ctx->out.elf, ehdr);
  /external/elfutils/libdwfl/
linux-core-attach.c 331 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (core, &ehdr_mem); local
332 if (ehdr == NULL)
337 if (ehdr->e_type != ET_CORE)
relocate.c 320 const GElf_Ehdr * const ehdr,
432 ehdr->e_ident[EI_DATA]);
453 ehdr->e_ident[EI_DATA]);
478 relocate_section (Dwfl_Module *mod, Elf *relocated, const GElf_Ehdr *ehdr,
549 GElf_Off shdrs_start = ehdr->e_shoff;
562 GElf_Off phdrs_start = ehdr->e_phoff;
597 result = relocate (mod, relocated, reloc_symtab, tdata, ehdr,
627 result = relocate (mod, relocated, reloc_symtab, tdata, ehdr,
707 const GElf_Ehdr *ehdr = gelf_getehdr (debugfile, &ehdr_mem); local
708 if (ehdr == NULL
    [all...]
dwfl_module_getdwarf.c 78 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (file->elf, &ehdr_mem);
79 if (ehdr == NULL)
89 if (ehdr->e_type != ET_REL)
153 mod->e_type = ehdr->e_type;
304 /* Decode the section. It consists of the original ehdr, phdrs,
311 } ehdr; local
314 .d_buf = &ehdr,
315 .d_size = sizeof ehdr,
332 if (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32)
334 if (ehdr.e32.e_shentsize != shentsiz
821 GElf_Ehdr *ehdr = gelf_getehdr (mod->main.elf, &ehdr_mem); local
    [all...]
dwfl_segment_report_module.c 340 } ehdr; local
354 .d_buf = &ehdr,
355 .d_size = sizeof ehdr,
367 e_type = ehdr.e32.e_type;
368 phoff = ehdr.e32.e_phoff;
369 phnum = ehdr.e32.e_phnum;
370 phentsize = ehdr.e32.e_phentsize;
373 shdrs_end = ehdr.e32.e_shoff + ehdr.e32.e_shnum * ehdr.e32.e_shentsize
    [all...]
link_map.c 517 GElf_Ehdr ehdr;
518 if (unlikely (gelf_getehdr (mod->main.elf, &ehdr) == NULL))
526 if (ehdr.e_entry == 0)
531 if (ehdr.e_entry != at_entry)
561 && (phdr->p_offset & -align) == (ehdr.e_phoff & -align))
568 if (ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr != at_phdr)
576 if (((ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr) & -align)
581 GElf_Addr bias = (at_phdr - (ehdr.e_phoff - phdr->p_offset
586 if (at_entry != 0 && at_entry != ehdr.e_entry + bias)
633 size_t buffer_available = addrsize (ehdr.e_ident[EI_CLASS])
514 GElf_Ehdr ehdr; local
821 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem); local
    [all...]
  /external/elfutils/libebl/
eblopenbackend.c 184 static bool default_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr,
299 assert (offsetof (Elf, state.elf32.ehdr)
300 == offsetof (Elf, state.elf64.ehdr));
311 result->machine = elf->state.elf32.ehdr->e_machine;
312 result->class = elf->state.elf32.ehdr->e_ident[EI_CLASS];
313 result->data = elf->state.elf32.ehdr->e_ident[EI_DATA];
400 GElf_Ehdr *ehdr; local
403 ehdr = gelf_getehdr (elf, &ehdr_mem);
404 if (ehdr == NULL)
411 return openbackend (elf, NULL, ehdr->e_machine)
    [all...]
  /external/elfutils/libelf/
elf_begin.c 84 } ehdr; local
98 ehdr.p = e_ident;
104 ehdr.p = &ehdr_mem;
143 result = ehdr.e32->e_shnum;
145 if (unlikely (result == 0) && ehdr.e32->e_shoff != 0)
147 if (unlikely (ehdr.e32->e_shoff >= maxsize)
148 || unlikely (maxsize - ehdr.e32->e_shoff < sizeof (Elf32_Shdr)))
154 || (((size_t) ((char *) map_address + ehdr.e32->e_shoff))
157 result = ((Elf32_Shdr *) ((char *) map_address + ehdr.e32->e_shoff
167 + ehdr.e32->e_shof
304 Elf32_Ehdr *ehdr = (Elf32_Ehdr *) ((char *) map_address + offset); local
406 Elf64_Ehdr *ehdr = (Elf64_Ehdr *) ((char *) map_address + offset); local
555 Elf64_Ehdr ehdr; member in union:__anon20178
    [all...]
libelfP.h 318 void *ehdr; member in struct:Elf::__anon20194::__anon20195
337 Elf32_Ehdr *ehdr; /* Pointer to the ELF header. This is member in struct:Elf::__anon20194::__anon20196
362 Elf64_Ehdr *ehdr; /* Pointer to the ELF header. This is member in struct:Elf::__anon20194::__anon20197
  /external/elfutils/src/
findtextrel.c 235 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local
236 if (ehdr == NULL)
247 if (ehdr->e_type != ET_DYN)
addr2line.c 463 GElf_Ehdr ehdr; local
464 if (gelf_getehdr (elf, &ehdr) != NULL)
465 printf (" (%s)", elf_strptr (elf, ehdr.e_shstrndx,
604 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local
605 if (ehdr != NULL)
606 width = ehdr->e_ident[EI_CLASS] == ELFCLASS32 ? 8 : 16;
elfcompress.c 176 setshdrstrndx (Elf *elf, GElf_Ehdr *ehdr, size_t ndx)
179 ehdr->e_shstrndx = ndx;
182 ehdr->e_shstrndx = SHN_XINDEX;
193 if (gelf_update_ehdr (elf, ehdr) == 0)
360 GElf_Ehdr ehdr; local
361 if (gelf_getehdr (elf, &ehdr) == NULL)
363 error (0, 0, "Couldn't get ehdr for %s: %s", fname, elf_errmsg (-1));
414 last_offset = (ehdr.e_phoff
571 error (0, 0, "Couldn't create new ehdr: %s", elf_errmsg (-1));
578 error (0, 0, "Couldn't get new ehdr: %s", elf_errmsg (-1))
    [all...]
stack.c 121 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local
122 if (ehdr)
123 width = ehdr->e_ident[EI_CLASS] == ELFCLASS32 ? 8 : 16;
strip.c 511 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local
512 if (ehdr == NULL)
541 || (ehdr->e_type != ET_REL
550 if (ehdr->e_type != ET_REL)
565 || (ehdr->e_type != ET_REL
574 if (ehdr->e_type != ET_REL)
652 if (ehdr->e_type == ET_REL
729 : ebl_section_strip_p (ebl, ehdr, &shdr_info[cnt].shdr,
976 && cnt != ehdr->e_shstrndx);
1023 memcpy (debugehdr->e_ident, ehdr->e_ident, EI_NIDENT)
    [all...]
  /external/elfutils/tests/
backtrace.c 378 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem); local
379 assert (ehdr != NULL);
384 is_x86_64_native = ehdr->e_machine == EM_X86_64;
elfstrmerge.c 174 GElf_Ehdr ehdr; local
175 if (gelf_getehdr (elf, &ehdr) == NULL)
176 fail_elf ("Couldn't get ehdr", fname);
262 last_offset = (ehdr.e_phoff
381 fail_elf ("Couldn't create new ehdr", fnew);
384 fail_elf ("Couldn't get ehdr", fnew);
386 newehdr.e_ident[EI_DATA] = ehdr.e_ident[EI_DATA];
387 newehdr.e_type = ehdr.e_type;
388 newehdr.e_machine = ehdr.e_machine;
389 newehdr.e_version = ehdr.e_version
    [all...]
  /external/vixl/examples/aarch32/
disasm-a32.cc 99 explicit SectionLocator(const Elf32_Ehdr* ehdr) {
101 reinterpret_cast<const char*>(ehdr) + ehdr->e_shoff);
104 reinterpret_cast<const char*>(ehdr) + shdr_[ehdr->e_shstrndx].sh_offset;
105 nsections_ = ehdr->e_shnum;
122 void LocateSymbols(const Elf32_Ehdr* ehdr,
128 reinterpret_cast<const char*>(ehdr) + ehdr->e_shoff);
131 reinterpret_cast<const char*>(ehdr) + strtab->sh_offset
240 const Elf32_Ehdr* ehdr = reinterpret_cast<const Elf32_Ehdr*>(base_addr); local
    [all...]
  /system/core/libunwindstack/
ElfInterface.cpp 163 EhdrType ehdr; local
164 if (!memory_->ReadFully(0, &ehdr, sizeof(ehdr))) {
170 if (!ReadProgramHeaders<EhdrType, PhdrType>(ehdr, load_bias)) {
176 if (!ReadSectionHeaders<EhdrType, ShdrType>(ehdr)) {
184 EhdrType ehdr; local
185 if (!memory->Read(0, &ehdr, sizeof(ehdr))) {
189 uint64_t offset = ehdr.e_phoff;
190 for (size_t i = 0; i < ehdr.e_phnum; i++, offset += ehdr.e_phentsize)
551 EhdrType ehdr; local
    [all...]
  /toolchain/binutils/binutils-2.27/gold/
readsyms.cc 290 const unsigned char* ehdr; local
292 bool is_elf = is_elf_object(input_file, 0, &ehdr, &read_size);
297 = memcmp(ehdr, Archive::armagt, Archive::sarmag) == 0;
299 || memcmp(ehdr, Archive::armag, Archive::sarmag) == 0)
337 input_file, 0, ehdr, read_size,
archive.cc 689 const unsigned char* ehdr; local
694 if (is_elf_object(input_file, memoff, &ehdr, &read_size))
698 input_file, memoff, ehdr, read_size,
    [all...]
  /external/syslinux/com32/tools/
relocs.c 21 static Elf32_Ehdr ehdr; variable
204 sec_strtab = secs[ehdr.e_shstrndx].strtab;
206 if (shndx < ehdr.e_shnum) {
254 if (fread(&ehdr, sizeof(ehdr), 1, fp) != 1) {
258 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) {
261 if (ehdr.e_ident[EI_CLASS] != ELFCLASS32) {
264 if (ehdr.e_ident[EI_DATA] != ELFDATA2LSB) {
267 if (ehdr.e_ident[EI_VERSION] != EV_CURRENT) {
271 ehdr.e_type = elf16_to_cpu(ehdr.e_type)
    [all...]
  /external/wpa_supplicant_8/src/eap_server/
eap_server.c 789 const struct eap_hdr *ehdr; local
812 ehdr = wpabuf_head(sm->eap_if.eapRespData);
975 erp_send_finish_reauth(sm, erp, ehdr->identifier, resp_flags, seq, nai);
    [all...]
  /frameworks/compile/mclinker/lib/LD/
ELFReader.cpp 305 const llvm::ELF::Elf32_Ehdr* ehdr = local
314 shoff = ehdr->e_shoff;
315 shentsize = ehdr->e_shentsize;
316 shnum = ehdr->e_shnum;
317 shstrtab = ehdr->e_shstrndx;
319 shoff = mcld::bswap32(ehdr->e_shoff);
320 shentsize = mcld::bswap16(ehdr->e_shentsize);
321 shnum = mcld::bswap16(ehdr->e_shnum);
322 shstrtab = mcld::bswap16(ehdr->e_shstrndx);
799 const llvm::ELF::Elf64_Ehdr* ehdr local
    [all...]
  /external/google-breakpad/src/tools/linux/md2core/
minidump-2-core.cc 62 #define Ehdr ElfW(Ehdr)
1092 Ehdr ehdr; local
    [all...]
  /external/wpa_supplicant_8/src/eap_peer/
eap_fast.c 1404 struct eap_tlv_hdr *ehdr; local
    [all...]

Completed in 888 milliseconds

1 23 4