Searched refs:phdr (Results 1 - 25 of 76) sorted by relevance

1234

/external/libunwind/src/coredump/
H A D_UCD_elf_map_image.c30 CD_elf_map_image(struct UCD_info *ui, coredump_phdr_t *phdr) argument
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
90 coredump_phdr_t *phdr = &ui->phdrs[i]; local
[all...]
H A D_UCD_access_mem.c40 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
[all...]
H A D_UCD_destroy.c41 struct coredump_phdr *phdr = &ui->phdrs[i]; local
42 free(phdr->backing_filename);
43 if (phdr->backing_fd >= 0)
44 close(phdr->backing_fd);
H A D_UCD_create.c212 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
410 struct coredump_phdr *phdr = &ui->phdrs[i]; local
[all...]
/external/chromium_org/third_party/android_crazy_linker/src/src/
H A Dlinker_phdr.cpp150 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
190 const ELF::Phdr* phdr_limit = phdr
263 const ELF::Phdr* phdr; local
349 const ELF::Phdr* phdr = phdr_table; local
386 const ELF::Phdr* phdr = phdr_table; local
[all...]
H A Dcrazy_linker_elf_loader.cpp228 for (const ELF::Phdr* phdr = phdr_table_; phdr < phdr_limit; ++phdr) {
229 if (phdr->p_type == PT_PHDR) {
230 return CheckPhdr(load_bias_ + phdr->p_vaddr, error);
237 for (const ELF::Phdr* phdr = phdr_table_; phdr < phdr_limit; ++phdr) {
238 if (phdr->p_type == PT_LOAD) {
239 if (phdr
279 const ELF::Phdr* phdr = &phdr_table_[i]; local
[all...]
H A Dcrazy_linker_elf_view.cpp16 const ELF::Phdr* phdr,
21 load_size_ = phdr_table_get_load_size(phdr, phdr_count, &min_vaddr, NULL);
30 phdr_table_get_dynamic_section(phdr,
42 // This is different from |phdr|..|phdr + phdr_count| which can actually
48 const ELF::Phdr* entry = &phdr[n];
60 const ELF::Phdr* entry = &phdr[n];
80 size_t seg_start = load_bias_ + phdr[n].p_vaddr;
81 size_t seg_end = seg_start + phdr[n].p_filesz;
101 LOG("%s: New ELF view [load_address:%p, load_size:%p, load_bias:%p, phdr
15 InitUnmapped(ELF::Addr load_address, const ELF::Phdr* phdr, size_t phdr_count, Error* error) argument
[all...]
/external/elfutils/0.153/libelf/
H A Delf32_getphdr.c78 result = elf->state.ELFW(elf,LIBELFBITS).phdr;
125 elf->state.ELFW(elf,LIBELFBITS).phdr = file_phdr;
129 ElfW2(LIBELFBITS,Phdr) *phdr;
133 phdr = elf->state.ELFW(elf,LIBELFBITS).phdr =
135 if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
149 memcpy (phdr, file_phdr, size);
165 CONVERT_TO (phdr[cnt].p_type, notcvt[cnt].p_type);
166 CONVERT_TO (phdr[cnt].p_offset, notcvt[cnt].p_offset);
167 CONVERT_TO (phdr[cn
[all...]
H A Dgelf_getphdr.c90 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
[all...]
H A Dgelf_update_phdr.c79 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
[all...]
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Dsymbol-minimal.c109 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
158 Elf64_Phdr *phdr; local
[all...]
/external/elfutils/0.153/libdwfl/
H A Dcore-file.c157 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
[all...]
H A Ddwfl_module_build_id.c120 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));
/external/libunwind/src/dwarf/
H A DGfind_unwind_table.c43 Elf_W(Phdr) *phdr, *ptxt = NULL, *peh_hdr = NULL, *pdyn = NULL;
66 phdr = (Elf_W(Phdr) *) ((char *) ei->image + ehdr->e_phoff);
71 switch (phdr[i].p_type)
74 if (phdr[i].p_vaddr < start_ip)
75 start_ip = phdr[i].p_vaddr;
77 if (phdr[i].p_vaddr + phdr[i].p_memsz > end_ip)
78 end_ip = phdr[i].p_vaddr + phdr[i].p_memsz;
80 if (phdr[
[all...]
/external/qemu/include/hw/
H A Delf_ops.h18 static void glue(bswap_phdr, SZ)(struct elf_phdr *phdr)
20 bswap32s(&phdr->p_type); /* Segment type */
21 bswapSZs(&phdr->p_offset); /* Segment file offset */
22 bswapSZs(&phdr->p_vaddr); /* Segment virtual address */
23 bswapSZs(&phdr->p_paddr); /* Segment physical address */
24 bswapSZs(&phdr->p_filesz); /* Segment size in file */
25 bswapSZs(&phdr->p_memsz); /* Segment size in memory */
26 bswap32s(&phdr->p_flags); /* Segment flags */
27 bswapSZs(&phdr->p_align); /* Segment alignment */
185 struct elf_phdr *phdr local
[all...]
/external/compiler-rt/lib/lsan/
H A Dlsan_common_linux.cc59 const ElfW(Phdr) *phdr = &(info->dlpi_phdr[j]);
62 if (!(phdr->p_flags & PF_W) || (phdr->p_type != PT_LOAD) ||
63 (phdr->p_memsz == 0))
65 uptr begin = info->dlpi_addr + phdr->p_vaddr;
66 uptr end = begin + phdr->p_memsz;
/external/elfutils/0.153/libdw/
H A Ddwarf_getcfi_elf.c147 getcfi_gnu_eh_frame (Elf *elf, const GElf_Ehdr *ehdr, const GElf_Phdr *phdr) argument
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
218 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); local
[all...]
/external/chromium_org/components/nacl/loader/nonsfi/
H A Delf_loader.cc104 // Converts the pflags (in phdr) to mmap's prot flags.
111 // Converts the pflags (in phdr) to NaCl ABI's prot flags.
124 const ElfW(Phdr)& phdr = phdrs[i];
125 if (phdr.p_type != PT_LOAD) {
130 begin = std::min(begin, phdr.p_vaddr);
131 end = std::max(end, phdr.p_vaddr + phdr.p_memsz);
182 const ElfW(Phdr)& phdr = phdrs[i];
183 if (phdr.p_type != PT_LOAD) {
189 ElfW(Addr) seg_start = phdr
[all...]
/external/libunwind/src/ia64/
H A DGfind_unwind_table.c99 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;
/external/wpa_supplicant_8/hostapd/src/eap_peer/
H A Dikev2.c843 struct ikev2_payload_hdr *phdr; local
851 phdr = wpabuf_put(msg, sizeof(*phdr));
852 phdr->next_payload = next_payload;
853 phdr->flags = 0;
892 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr;
893 WPA_PUT_BE16(phdr->payload_length, plen);
902 struct ikev2_payload_hdr *phdr; local
915 phdr = wpabuf_put(msg, sizeof(*phdr));
938 struct ikev2_payload_hdr *phdr; local
957 struct ikev2_payload_hdr *phdr; local
983 struct ikev2_payload_hdr *phdr; local
1023 struct ikev2_payload_hdr *phdr; local
[all...]
/external/wpa_supplicant_8/src/eap_peer/
H A Dikev2.c843 struct ikev2_payload_hdr *phdr; local
851 phdr = wpabuf_put(msg, sizeof(*phdr));
852 phdr->next_payload = next_payload;
853 phdr->flags = 0;
892 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr;
893 WPA_PUT_BE16(phdr->payload_length, plen);
902 struct ikev2_payload_hdr *phdr; local
915 phdr = wpabuf_put(msg, sizeof(*phdr));
938 struct ikev2_payload_hdr *phdr; local
957 struct ikev2_payload_hdr *phdr; local
983 struct ikev2_payload_hdr *phdr; local
1023 struct ikev2_payload_hdr *phdr; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/eap_peer/
H A Dikev2.c843 struct ikev2_payload_hdr *phdr; local
851 phdr = wpabuf_put(msg, sizeof(*phdr));
852 phdr->next_payload = next_payload;
853 phdr->flags = 0;
892 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr;
893 WPA_PUT_BE16(phdr->payload_length, plen);
902 struct ikev2_payload_hdr *phdr; local
915 phdr = wpabuf_put(msg, sizeof(*phdr));
938 struct ikev2_payload_hdr *phdr; local
957 struct ikev2_payload_hdr *phdr; local
983 struct ikev2_payload_hdr *phdr; local
1023 struct ikev2_payload_hdr *phdr; local
[all...]
/external/elfutils/0.153/backends/
H A Dppc_symbol.c86 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/valgrind/main/coregrind/
H A Dpub_core_ume.h55 Addr phdr; // OUT: address phdr was mapped at member in struct:__anon32750
/external/wpa_supplicant_8/hostapd/src/eap_server/
H A Dikev2.c907 struct ikev2_payload_hdr *phdr; local
915 phdr = wpabuf_put(msg, sizeof(*phdr));
916 phdr->next_payload = next_payload;
917 phdr->flags = 0;
957 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr;
958 WPA_PUT_BE16(phdr->payload_length, plen);
967 struct ikev2_payload_hdr *phdr; local
981 phdr = wpabuf_put(msg, sizeof(*phdr));
1004 struct ikev2_payload_hdr *phdr; local
1023 struct ikev2_payload_hdr *phdr; local
1049 struct ikev2_payload_hdr *phdr; local
[all...]

Completed in 411 milliseconds

1234