HomeSort by relevance Sort by last modified time
    Searched defs:phdr (Results 1 - 25 of 38) sorted by null

1 2

  /external/libunwind/src/coredump/
_UCD_destroy.c 41 struct coredump_phdr *phdr = &ui->phdrs[i]; local
42 free(phdr->backing_filename);
43 if (phdr->backing_fd >= 0)
44 close(phdr->backing_fd);
_UCD_elf_map_image.c 30 CD_elf_map_image(struct UCD_info *ui, coredump_phdr_t *phdr)
34 if (phdr->backing_fd < 0)
36 /* Note: coredump file contains only phdr->p_filesz bytes.
37 * We want to map bigger area (phdr->p_memsz bytes) to make sure
41 ei->image = mmap(NULL, phdr->p_memsz, PROT_READ, MAP_PRIVATE, ui->coredump_fd, phdr->p_offset);
47 ei->size = phdr->p_filesz;
48 size_t remainder_len = phdr->p_memsz - phdr->p_filesz;
51 void *remainder_base = (char*) ei->image + phdr->p_filesz
90 coredump_phdr_t *phdr = &ui->phdrs[i]; local
    [all...]
_UCD_access_mem.c 40 coredump_phdr_t *phdr; local
44 phdr = &ui->phdrs[i];
45 if (phdr->p_vaddr <= addr && addr_last < phdr->p_vaddr + phdr->p_memsz)
58 if (addr_last >= phdr->p_vaddr + phdr->p_filesz)
62 if (phdr->backing_fd < 0)
64 Debug(1, "access to not-present data in phdr[%d]: addr:0x%llx\n",
69 filename = phdr->backing_filename
    [all...]
_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)
_UCD_create.c 212 Debug(2, "phdr[%03d]: type:%d", i, cur->p_type);
315 struct coredump_phdr *phdr = &ui->phdrs[phdr_no]; local
316 if (phdr->backing_filename)
329 phdr->backing_fd = fd;
330 phdr->backing_filename = strdup(filename);
338 phdr->backing_filesize = (uoff_t)statbuf.st_size;
340 if (phdr->p_flags != (PF_X | PF_R))
341 Debug(1, "Note: phdr[%u] is not r-x: flags are 0x%x\n", phdr_no, phdr->p_flags);
343 if (phdr->backing_filesize > phdr->p_memsz
410 struct coredump_phdr *phdr = &ui->phdrs[i]; local
    [all...]
  /external/elfutils/0.153/libelf/
gelf_getphdr.c 90 Elf32_Phdr *phdr = elf->state.elf32.phdr; local
92 if (phdr == NULL)
95 phdr = INTUSE(elf32_getphdr) (elf);
96 if (phdr == NULL)
117 phdr += ndx;
119 #define COPY(Name) result->Name = phdr->Name
132 Elf64_Phdr *phdr = elf->state.elf64.phdr; local
134 if (phdr == NULL
    [all...]
gelf_update_phdr.c 79 Elf32_Phdr *phdr = elf->state.elf32.phdr; local
95 if (phdr == NULL)
97 phdr = __elf32_getphdr_wrlock (elf);
98 if (phdr == NULL)
115 phdr += ndx;
118 phdr->name = src->name
130 Elf64_Phdr *phdr = elf->state.elf64.phdr; local
132 if (phdr == NULL
    [all...]
  /external/libunwind/src/ia64/
Gfind_unwind_table.c 99 Elf64_Phdr *phdr, *ptxt = NULL, *punw = NULL, *pdyn = NULL; local
107 phdr = (Elf64_Phdr *) ((char *) edi->ei.image + ehdr->e_phoff);
111 switch (phdr[i].p_type)
114 if (phdr[i].p_offset == mapoff)
115 ptxt = phdr + i;
119 punw = phdr + i;
123 pdyn = phdr + i;
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/0.153/backends/
ppc_symbol.c 86 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); local
87 if (phdr == NULL || phdr->p_type != PT_DYNAMIC)
90 Elf_Scn *scn = gelf_offscn (elf, phdr->p_offset);
  /external/chromium_org/third_party/android_crazy_linker/src/src/
linker_phdr.cpp 64 We will ignore the p_paddr and p_align fields of ELF::Phdr for now.
141 size_t phdr_table_get_load_size(const ELF::Phdr* phdr_table,
150 const ELF::Phdr* phdr = &phdr_table[i]; local
152 if (phdr->p_type != PT_LOAD) {
157 if (phdr->p_vaddr < min_vaddr) {
158 min_vaddr = phdr->p_vaddr;
161 if (phdr->p_vaddr + phdr->p_memsz > max_vaddr) {
162 max_vaddr = phdr->p_vaddr + phdr->p_memsz
189 const ELF::Phdr* phdr = phdr_table; local
263 const ELF::Phdr* phdr; local
349 const ELF::Phdr* phdr = phdr_table; local
386 const ELF::Phdr* phdr = phdr_table; local
    [all...]
crazy_linker_elf_view.h 29 // |phdr| is a pointer to the library's program header. Note that this can
35 // appropriate values. Note that functions phdr() or dynamic() will always
39 const ELF::Phdr* phdr,
43 const ELF::Phdr* phdr() const { return phdr_; } function in class:crazy::ElfView
97 const ELF::Phdr* phdr_;
crazy_linker_elf_loader.cpp 155 if (phdr_num_ < 1 || phdr_num_ > 65536 / sizeof(ELF::Phdr)) {
162 PAGE_END(header_.e_phoff + (phdr_num_ * sizeof(ELF::Phdr)));
170 error->Format("Phdr mmap failed: %s", strerror(errno));
175 phdr_table_ = reinterpret_cast<ELF::Phdr*>(
225 const ELF::Phdr* phdr_limit = phdr_table_ + phdr_num_;
228 for (const ELF::Phdr* phdr = phdr_table_; phdr < phdr_limit; ++phdr) {
229 if (phdr->p_type == PT_PHDR)
279 const ELF::Phdr* phdr = &phdr_table_[i]; local
    [all...]
crazy_linker_rdebug.cpp 71 if (header->e_phoff == 0 || header->e_phentsize != sizeof(ELF::Phdr)) {
82 ELF::Phdr phdr_load0 = {0, };
83 ELF::Phdr phdr_dyn = {0, };
88 ELF::Phdr phdr; local
89 if (fd.Read(&phdr, sizeof(phdr)) != sizeof(phdr)) {
94 if (phdr.p_type == PT_LOAD && !found_load0) {
95 phdr_load0 = phdr;
    [all...]
crazy_linker_shared_library.h 39 const ELF::Phdr* phdr() const { return view_.phdr(); } function in class:crazy::SharedLibrary
  /external/elfutils/0.153/libdwfl/
dwfl_module_build_id.c 120 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); local
121 if (likely (phdr != NULL) && phdr->p_type == PT_NOTE)
124 phdr->p_offset,
125 phdr->p_filesz,
127 dwfl_adjusted_address (mod, phdr->p_vaddr));
core-file.c 157 GElf_Phdr *phdr = gelf_getphdr (elf, ndx, &phdr_mem); local
158 if (unlikely (phdr == NULL))
163 switch (phdr->p_type)
166 result = dwfl_report_segment (dwfl, ndx, phdr, 0, NULL);
172 *notes = *phdr;
270 GElf_Phdr phdr; local
273 if (unlikely (gelf_getphdr (elf, ndx++, &phdr) == NULL))
275 while (phdr.p_type != PT_LOAD
276 || ((phdr.p_vaddr + phdr.p_memsz + align - 1) & -align) <= vaddr)
    [all...]
dwfl_module_getdwarf.c 409 GElf_Phdr phdr; local
410 if (unlikely (gelf_getphdr (mod->main.elf, i, &phdr) == NULL))
412 if (phdr.p_type == PT_INTERP)
414 main_interp = phdr.p_vaddr;
430 } phdr; local
431 dst.d_buf = &phdr;
432 dst.d_size = sizeof phdr;
439 if (phdr.p32[i].p_type == PT_INTERP)
441 undo_interp = phdr.p32[i].p_vaddr;
448 if (phdr.p64[i].p_type == PT_INTERP
634 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); local
662 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem); local
    [all...]
link_map.c 210 based on its phdr mappings. */
474 // XXX this could be saved in the file cache: phdr vaddr, DT_DEBUG d_val vaddr
482 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem);
483 if (phdr == NULL)
486 if (phdr->p_align > 1 && (align == 0 || phdr->p_align < align))
487 align = phdr->p_align;
490 && phdr->p_type == PT_LOAD
491 && (phdr->p_offset & -align) == (ehdr.e_phoff & -align))
495 if its phdr mapping could not have supplied that. *
479 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem); local
638 GElf_Addr phdr = 0; local
    [all...]
  /external/elfutils/0.153/libdw/
dwarf_getcfi_elf.c 147 getcfi_gnu_eh_frame (Elf *elf, const GElf_Ehdr *ehdr, const GElf_Phdr *phdr)
149 if (unlikely (phdr->p_filesz < 4))
152 Elf_Data *data = elf_getdata_rawchunk (elf, phdr->p_offset, phdr->p_filesz,
158 /* XXX might be read error or corrupt phdr */
166 const uint8_t *search_table = parse_eh_frame_hdr (data->d_buf, phdr->p_filesz,
167 phdr->p_vaddr, ehdr,
174 Dwarf_Off eh_frame_offset = eh_frame_ptr - phdr->p_vaddr + phdr->p_offset;
199 cfi->search_table_vaddr = phdr->p_vaddr
218 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); local
    [all...]
  /external/linux-tools-perf/perf-3.12.0/tools/perf/util/
symbol-minimal.c 109 Elf32_Phdr *phdr; local
129 for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) {
133 phdr->p_type = bswap_32(phdr->p_type);
134 phdr->p_offset = bswap_32(phdr->p_offset);
135 phdr->p_filesz = bswap_32(phdr->p_filesz);
138 if (phdr->p_type != PT_NOTE
158 Elf64_Phdr *phdr; local
    [all...]
  /external/elfutils/0.153/src/
findtextrel.c 338 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); local
339 if (phdr == NULL)
348 if (phdr->p_type == PT_LOAD && (phdr->p_flags & PF_W) == 0)
367 segments[nsegments].from = phdr->p_vaddr;
368 segments[nsegments].to = phdr->p_vaddr + phdr->p_memsz;
size.c 632 GElf_Phdr *phdr; local
634 phdr = gelf_getphdr (elf, cnt, &phdr_mem);
635 if (phdr == NULL)
638 if (phdr->p_type != PT_LOAD)
649 phdr->p_memsz,
650 (phdr->p_flags & PF_R) == 0 ? '-' : 'r',
651 (phdr->p_flags & PF_W) == 0 ? '-' : 'w',
652 (phdr->p_flags & PF_X) == 0 ? '-' : 'x');
654 total += phdr->p_memsz;
  /bionic/linker/
linker.h 119 const ElfW(Phdr)* phdr; member in struct:soinfo
  /external/compiler-rt/lib/sanitizer_common/
sanitizer_linux_libcdep.cc 473 typedef ElfW(Phdr) Elf_Phdr;
506 const Elf_Phdr *phdr = &info->dlpi_phdr[i]; local
507 if (phdr->p_type == PT_LOAD) {
508 uptr cur_beg = info->dlpi_addr + phdr->p_vaddr;
509 uptr cur_end = cur_beg + phdr->p_memsz;
510 bool executable = phdr->p_flags & PF_X;

Completed in 8744 milliseconds

1 2