HomeSort by relevance Sort by last modified time
    Searched refs:phdr (Results 26 - 50 of 96) sorted by null

12 3 4

  /external/elfutils/libdwfl/
segment.c 283 dwfl_report_segment (Dwfl *dwfl, int ndx, const GElf_Phdr *phdr, GElf_Addr bias,
292 if (phdr->p_align > 1 && (dwfl->segment_align <= 1 ||
293 phdr->p_align < dwfl->segment_align))
294 dwfl->segment_align = phdr->p_align;
302 GElf_Addr start = __libdwfl_segment_start (dwfl, bias + phdr->p_vaddr);
304 bias + phdr->p_vaddr + phdr->p_memsz);
311 || phdr->p_offset != dwfl->lookup_tail_offset)
328 dwfl->lookup_tail_offset = end - bias - phdr->p_vaddr + phdr->p_offset
    [all...]
core-file.c 139 GElf_Phdr *phdr = gelf_getphdr (elf, ndx, &phdr_mem); local
140 if (unlikely (phdr == NULL))
145 switch (phdr->p_type)
148 result = dwfl_report_segment (dwfl, ndx, phdr, 0, NULL);
154 *notes = *phdr;
280 #define more(size) do_more (size, &phdr, align, elf, start, &ndx, &end, &end_vaddr)
302 GElf_Phdr phdr; local
305 if (unlikely (gelf_getphdr (elf, ndx++, &phdr) == NULL))
307 while (phdr.p_type != PT_LOAD
308 || ((phdr.p_vaddr + phdr.p_memsz + align - 1) & -align) <= vaddr)
432 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); local
    [all...]
linux-core-attach.c 69 GElf_Phdr phdr_mem, *phdr = gelf_getphdr (core, cnt, &phdr_mem); local
70 if (phdr == NULL || phdr->p_type != PT_LOAD)
73 GElf_Addr start = __libdwfl_segment_start (dwfl, phdr->p_vaddr);
75 phdr->p_vaddr + phdr->p_memsz);
80 data = elf_getdata_rawchunk (core, phdr->p_offset + addr - start,
352 GElf_Phdr phdr_mem, *phdr = gelf_getphdr (core, cnt, &phdr_mem); local
353 if (phdr != NULL && phdr->p_type == PT_NOTE
    [all...]
link_map.c 194 based on its phdr mappings. */
540 // XXX this could be saved in the file cache: phdr vaddr, DT_DEBUG d_val vaddr
552 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem);
553 if (phdr == NULL)
556 if (phdr->p_align > 1 && (align == 0 || phdr->p_align < align))
557 align = phdr->p_align;
560 && phdr->p_type == PT_LOAD
561 && (phdr->p_offset & -align) == (ehdr.e_phoff & -align))
565 if its phdr mapping could not have supplied that. *
549 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem); local
709 GElf_Addr phdr = 0; local
    [all...]
dwfl_module_getdwarf.c 372 GElf_Phdr phdr; local
373 if (unlikely (gelf_getphdr (mod->main.elf, i, &phdr) == NULL))
375 if (phdr.p_type == PT_INTERP)
377 main_interp = phdr.p_vaddr;
667 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); local
668 if (phdr != NULL && phdr->p_type == PT_LOAD && phdr->p_memsz > 0)
671 && addrs[j] >= phdr->p_vaddr + main_bias
672 && addrs[j] - (phdr->p_vaddr + main_bias) < phdr->p_filesz
830 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem); local
    [all...]
  /external/wpa_supplicant_8/src/eap_common/
ikev2_common.c 248 const struct ikev2_payload_hdr *phdr; local
260 if (left < sizeof(*phdr)) {
266 phdr = (const struct ikev2_payload_hdr *) pos;
267 plen = WPA_GET_BE16(phdr->payload_length);
268 if (plen < sizeof(*phdr) || plen > left) {
276 phdr->next_payload, phdr->flags, plen);
278 pdata = (const u8 *) (phdr + 1);
279 pdatalen = plen - sizeof(*phdr);
332 if (phdr->flags & IKEV2_PAYLOAD_FLAGS_CRITICAL)
534 struct ikev2_payload_hdr *phdr; local
    [all...]
  /external/libunwind/src/ia64/
Gtables.c 475 const Elf64_Phdr *phdr, *p_unwind, *p_dynamic, *p_text; local
487 phdr = info->dlpi_phdr;
495 for (n = info->dlpi_phnum; --n >= 0; phdr++)
497 if (phdr->p_type == PT_LOAD)
499 Elf64_Addr vaddr = phdr->p_vaddr + load_base;
501 && di->u.ti.segbase < vaddr + phdr->p_memsz)
502 p_text = phdr;
504 else if (phdr->p_type == PT_IA_64_UNWIND)
505 p_unwind = phdr;
506 else if (phdr->p_type == PT_DYNAMIC
    [all...]
  /external/elfutils/libelf/
elf32_newphdr.c 45 ElfW2(LIBELFBITS,Phdr) *
48 ElfW2(LIBELFBITS,Phdr) *result;
87 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL)
90 free (elf->state.ELFW(elf,LIBELFBITS).phdr);
93 elf->state.ELFW(elf,LIBELFBITS).phdr = NULL;
102 sizeof (ElfW2(LIBELFBITS,Phdr));
113 || elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
115 if (unlikely (count > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr))))
126 the extended phdr count. */
134 result = (ElfW2(LIBELFBITS,Phdr) *)
    [all...]
elf_end.c 210 || (offsetof (struct Elf, state.elf32.phdr)
211 == offsetof (struct Elf, state.elf64.phdr))
212 ? (void *) elf->state.elf32.phdr
213 : (void *) elf->state.elf64.phdr);
  /external/libunwind/src/
elfxx.c 258 Elf_W(Phdr) phdr;
259 GET_PHDR_FIELD(ei, offset, &phdr, p_type);
260 if (phdr.p_type == PT_LOAD) {
261 GET_PHDR_FIELD(ei, offset, &phdr, p_offset);
262 if (phdr.p_offset == mapoff) {
263 GET_PHDR_FIELD(ei, offset, &phdr, p_vaddr);
264 *load_offset = segbase - phdr.p_vaddr;
268 offset += sizeof(Elf_W(Phdr));
394 Elf_W(Phdr) *phdr = (Elf_W(Phdr) *) ((char *) ei->u.mapped.image + ehdr->e_phoff)
    [all...]
  /external/libunwind/src/coredump/
_UCD_find_proc_info.c 55 coredump_phdr_t *phdr = _UCD_get_elf_image(ui, ip); local
56 if (!phdr)
63 segbase = phdr->p_vaddr;
64 /*mapoff = phdr->p_offset; WRONG! phdr->p_offset is the offset in COREDUMP file */
71 if (tdep_find_unwind_table(&ui->edi, as, phdr->backing_filename, segbase, mapoff, ip) < 0)
  /external/valgrind/coregrind/
pub_core_ume.h 55 Addr phdr; // OUT: address phdr was mapped at member in struct:__anon25358
69 Bool real_phdr_present; // OUT: PT_PHDR found, include phdr in auxv
  /external/elfutils/src/
elflint.c 850 GElf_Phdr *phdr = NULL; local
855 phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem);
856 if (phdr != NULL && phdr->p_type == PT_TLS)
867 else if (phdr == NULL)
876 < destshdr->sh_offset - phdr->p_offset)
882 > (destshdr->sh_offset - phdr->p_offset
889 > (destshdr->sh_offset - phdr->p_offset
1017 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem); local
1019 if (phdr != NULL && phdr->p_type == PT_DYNAMIC
1287 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, i, &phdr_mem); local
1771 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, n, &phdr_mem); local
3008 GElf_Phdr *phdr = NULL; local
3996 GElf_Phdr *phdr; local
4186 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem); local
4413 GElf_Phdr *phdr; local
    [all...]
findtextrel.c 336 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); local
337 if (phdr == NULL)
346 if (phdr->p_type == PT_LOAD && (phdr->p_flags & PF_W) == 0)
365 segments[nsegments].from = phdr->p_vaddr;
366 segments[nsegments].to = phdr->p_vaddr + phdr->p_memsz;
size.c 608 GElf_Phdr *phdr; local
610 phdr = gelf_getphdr (elf, cnt, &phdr_mem);
611 if (phdr == NULL)
614 if (phdr->p_type != PT_LOAD)
625 phdr->p_memsz,
626 (phdr->p_flags & PF_R) == 0 ? '-' : 'r',
627 (phdr->p_flags & PF_W) == 0 ? '-' : 'w',
628 (phdr->p_flags & PF_X) == 0 ? '-' : 'x');
630 total += phdr->p_memsz;
  /art/compiler/
elf_builder.h 85 using Elf_Phdr = typename ElfTypes::Phdr;
832 Elf_Phdr phdr = Elf_Phdr(); local
833 phdr.p_type = PT_PHDR;
834 phdr.p_flags = PF_R;
835 phdr.p_offset = phdr.p_vaddr = phdr.p_paddr = sizeof(Elf_Ehdr);
836 phdr.p_filesz = phdr.p_memsz = 0; // We need to fill this later.
837 phdr.p_align = sizeof(Elf_Off)
885 Elf_Phdr phdr = Elf_Phdr(); local
    [all...]
  /external/libunwind/src/arm/
Gex_tables.c 458 const Elf_W(Phdr) *p_text = NULL;
459 const Elf_W(Phdr) *p_arm_exidx = NULL;
460 const Elf_W(Phdr) *phdr = info->dlpi_phdr;
463 for (n = info->dlpi_phnum; --n >= 0; phdr++)
465 switch (phdr->p_type)
468 if (cb_data->ip >= phdr->p_vaddr + info->dlpi_addr &&
469 cb_data->ip < phdr->p_vaddr + info->dlpi_addr + phdr->p_memsz)
470 p_text = phdr;
    [all...]
  /external/valgrind/coregrind/m_coredump/
coredump-solaris.c 393 ehdr->e_phentsize = sizeof(VKI_ESZ(Phdr));
415 static void fill_phdr(VKI_ESZ(Phdr) *phdr, const NSegment *seg, UInt off,
422 VG_(memset)(phdr, 0, sizeof(*phdr));
424 phdr->p_type = PT_LOAD;
425 phdr->p_offset = off;
426 phdr->p_vaddr = seg->start;
427 phdr->p_paddr = 0;
428 phdr->p_filesz = really_write ? len : 0
    [all...]
coredump-elf.c 104 ehdr->e_phentsize = sizeof(ESZ(Phdr));
112 static void fill_phdr(ESZ(Phdr) *phdr, const NSegment *seg, UInt off, Bool write)
118 VG_(memset)(phdr, 0, sizeof(*phdr));
120 phdr->p_type = PT_LOAD;
121 phdr->p_offset = off;
122 phdr->p_vaddr = seg->start;
123 phdr->p_paddr = 0;
124 phdr->p_filesz = write ? len : 0
    [all...]
  /external/google-breakpad/src/tools/linux/md2core/
minidump-2-core.cc 63 #define Phdr ElfW(Phdr)
1127 Phdr phdr; local
    [all...]
  /external/toybox/toys/pending/
file.c 83 char *map, *phdr; local
97 j = elf_int(phdr = map+(phoff-mapoff)+i*phsize, 4);
103 dlpos = elf_int(phdr+4*j, 4*j);
104 dllen = elf_int(phdr+16*j, 4*j);
  /external/vboot_reference/utility/include/
gbb_utility.h 82 // return true if a valid GBB header is loaded into *phdr.
84 GoogleBinaryBlockHeader *phdr) const;
  /external/google-breakpad/src/common/linux/
synth_elf_unittest.cc 200 typedef typename TypeParam::Phdr Phdr;
234 EXPECT_EQ(sizeof(Phdr), header->e_phentsize);
267 typedef typename TypeParam::Phdr Phdr;
274 sizeof(Phdr) + 4 * sizeof(Shdr) + 4096 +
305 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr) + 4096 + kStringTableSize +
309 EXPECT_EQ(sizeof(Phdr), header->e_phentsize);
332 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr), shdr[1].sh_offset);
354 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr) + 4096, shdr[3].sh_offset)
361 const Phdr* phdr = local
    [all...]
  /external/libunwind_llvm/src/
AddressSpace.hpp 402 typedef ElfW(Phdr) Elf_Phdr;
406 const Elf_Phdr *phdr = &pinfo->dlpi_phdr[i];
407 if (phdr->p_type == PT_LOAD) {
408 uintptr_t begin = pinfo->dlpi_addr + phdr->p_vaddr;
409 uintptr_t end = begin + phdr->p_memsz;
412 object_length = phdr->p_memsz;
415 } else if (phdr->p_type == PT_GNU_EH_FRAME) {
417 uintptr_t eh_frame_hdr_start = pinfo->dlpi_addr + phdr->p_vaddr;
419 cbdata->sects->dwarf_index_section_length = phdr->p_memsz;
421 *cbdata->addressSpace, eh_frame_hdr_start, phdr->p_memsz
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/Unwind/
AddressSpace.hpp 392 const ElfW(Phdr) *phdr = &pinfo->dlpi_phdr[i];
393 if (phdr->p_type == PT_LOAD) {
394 uintptr_t begin = pinfo->dlpi_addr + phdr->p_vaddr;
395 uintptr_t end = begin + phdr->p_memsz;
398 object_length = phdr->p_memsz;
401 } else if (phdr->p_type == PT_GNU_EH_FRAME) {
403 uintptr_t eh_frame_hdr_start = pinfo->dlpi_addr + phdr->p_vaddr;
405 cbdata->sects->dwarf_index_section_length = phdr->p_memsz;
407 *cbdata->addressSpace, eh_frame_hdr_start, phdr->p_memsz
    [all...]

Completed in 704 milliseconds

12 3 4