/bionic/linker/ |
linker_phdr.cpp | 220 DL_ERR("\"%s\" phdr mmap failed: %s", name_, strerror(errno)); 242 const Elf32_Phdr* phdr = &phdr_table[i]; local 244 if (phdr->p_type != PT_LOAD) { 248 if (phdr->p_vaddr < min_vaddr) { 249 min_vaddr = phdr->p_vaddr; 252 if (phdr->p_vaddr + phdr->p_memsz > max_vaddr) { 253 max_vaddr = phdr->p_vaddr + phdr->p_memsz; 288 const Elf32_Phdr* phdr = &phdr_table_[i] local 303 const Elf32_Phdr* phdr = &phdr_table_[i]; local 373 const Elf32_Phdr* phdr = phdr_table; local 447 const Elf32_Phdr* phdr = phdr_table; local 537 const Elf32_Phdr* phdr = phdr_table; local 576 const Elf32_Phdr* phdr = phdr_table; local [all...] |
/external/elfutils/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) 113 phdr += ndx; 115 #define COPY(Name) result->Name = phdr->Name 128 Elf64_Phdr *phdr = elf->state.elf64.phdr; local 130 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) 111 phdr += ndx; 114 phdr->name = src->name 126 Elf64_Phdr *phdr = elf->state.elf64.phdr; local 128 if (phdr == NULL [all...] |
elf32_getphdr.c | 69 ElfW2(LIBELFBITS,Phdr) * 73 ElfW2(LIBELFBITS,Phdr) *result; 78 result = elf->state.ELFW(elf,LIBELFBITS).phdr; 104 size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr)); 114 & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) - 1)) == 0)) 116 elf->state.ELFW(elf,LIBELFBITS).phdr = file_phdr; 119 ElfW2(LIBELFBITS,Phdr) *notcvt; 120 ElfW2(LIBELFBITS,Phdr) *phdr; 124 phdr = elf->state.ELFW(elf,LIBELFBITS).phdr [all...] |
elf32_newphdr.c | 66 ElfW2(LIBELFBITS,Phdr) * 71 ElfW2(LIBELFBITS,Phdr) *result; 104 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL) 107 free (elf->state.ELFW(elf,LIBELFBITS).phdr); 110 elf->state.ELFW(elf,LIBELFBITS).phdr = NULL; 115 sizeof (ElfW2(LIBELFBITS,Phdr)); 125 || elf->state.ELFW(elf,LIBELFBITS).phdr == NULL) 129 result = (ElfW2(LIBELFBITS,Phdr) *) 130 realloc (elf->state.ELFW(elf,LIBELFBITS).phdr, 131 count * sizeof (ElfW2(LIBELFBITS,Phdr))); [all...] |
/external/elfutils/tests/ |
showptable.c | 94 [PT_PHDR] = "PHDR" 97 GElf_Phdr *phdr = gelf_getphdr (elf, cnt, &mem); local 99 const char *p_type = typenames[phdr->p_type]; 102 if (phdr->p_type >= PT_NUM) 104 snprintf (buf, sizeof (buf), "%x", phdr->p_type); 111 (unsigned long long int) phdr->p_offset, 113 (unsigned long long int) phdr->p_vaddr, 115 (unsigned long long int) phdr->p_paddr, 117 (unsigned long long int) phdr->p_filesz, 119 (unsigned long long int) phdr->p_memsz [all...] |
update2.c | 46 Elf32_Phdr *phdr; local 98 phdr = elf32_newphdr (elf, 1); 99 if (phdr == NULL) 105 phdr[0].p_type = PT_PHDR; 117 phdr[0].p_offset = ehdr->e_phoff; 118 phdr[0].p_offset = ehdr->e_phoff; 119 phdr[0].p_vaddr = ehdr->e_phoff; 120 phdr[0].p_paddr = ehdr->e_phoff; 121 phdr[0].p_flags = PF_R | PF_X; 122 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT) [all...] |
update3.c | 48 Elf32_Phdr *phdr; local 107 phdr = elf32_newphdr (elf, 1); 108 if (phdr == NULL) 114 phdr[0].p_type = PT_PHDR; 166 phdr[0].p_offset = ehdr->e_phoff; 167 phdr[0].p_offset = ehdr->e_phoff; 168 phdr[0].p_vaddr = ehdr->e_phoff; 169 phdr[0].p_paddr = ehdr->e_phoff; 170 phdr[0].p_flags = PF_R | PF_X; 171 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT) [all...] |
update4.c | 49 Elf32_Phdr *phdr; local 112 phdr = elf32_newphdr (elf, 1); 113 if (phdr == NULL) 119 phdr[0].p_type = PT_PHDR; 319 phdr[0].p_offset = ehdr->e_phoff; 320 phdr[0].p_offset = ehdr->e_phoff; 321 phdr[0].p_vaddr = ehdr->e_phoff; 322 phdr[0].p_paddr = ehdr->e_phoff; 323 phdr[0].p_flags = PF_R | PF_X; 324 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT) [all...] |
/bionic/libc/bionic/ |
libc_init_static.cpp | 73 for (Elf32_Phdr* phdr = phdr_start; phdr < (phdr_start + phdr_ct); phdr++) { 74 if (phdr->p_type != PT_GNU_RELRO) { 78 Elf32_Addr seg_page_start = PAGE_START(phdr->p_vaddr); 79 Elf32_Addr seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz);
|
dl_iterate_phdr_static.c | 39 * phdr and phnum from there. 51 Elf32_Phdr *phdr = (Elf32_Phdr *)((unsigned long)ehdr + ehdr->e_phoff); local 62 dl_info.dlpi_phdr = phdr;
|
/external/elfutils/libdwfl/ |
core-file.c | 164 GElf_Phdr *phdr = gelf_getphdr (elf, ndx, &phdr_mem); local 165 if (unlikely (phdr == NULL)) 170 switch (phdr->p_type) 173 result = dwfl_report_segment (dwfl, ndx, phdr, 0, NULL); 179 *notes = *phdr; 277 GElf_Phdr phdr; local 280 if (unlikely (gelf_getphdr (elf, ndx++, &phdr) == NULL)) 282 while (phdr.p_type != PT_LOAD 283 || ((phdr.p_vaddr + phdr.p_memsz + align - 1) & -align) <= vaddr) [all...] |
dwfl_module_build_id.c | 117 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); local 118 if (likely (phdr != NULL) && phdr->p_type == PT_NOTE) 121 phdr->p_offset, 122 phdr->p_filesz, 124 phdr->p_vaddr + mod->main.bias);
|
segment.c | 273 dwfl_report_segment (Dwfl *dwfl, int ndx, const GElf_Phdr *phdr, GElf_Addr bias, 282 if (phdr->p_align > 1 && (dwfl->segment_align <= 1 || 283 phdr->p_align < dwfl->segment_align)) 284 dwfl->segment_align = phdr->p_align; 292 GElf_Addr start = segment_start (dwfl, bias + phdr->p_vaddr); 293 GElf_Addr end = segment_end (dwfl, bias + phdr->p_vaddr + phdr->p_memsz); 300 || phdr->p_offset != dwfl->lookup_tail_offset) 317 dwfl->lookup_tail_offset = end - bias - phdr->p_vaddr + phdr->p_offset [all...] |
link_map.c | 217 based on its phdr mappings. */ 476 // XXX this could be saved in the file cache: phdr vaddr, DT_DEBUG d_val vaddr 484 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem); 485 if (phdr == NULL) 488 if (phdr->p_align > 1 && (align == 0 || phdr->p_align < align)) 489 align = phdr->p_align; 492 && phdr->p_type == PT_LOAD 493 && (phdr->p_offset & -align) == (ehdr.e_phoff & -align)) 497 if its phdr mapping could not have supplied that. * 481 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem); local 643 GElf_Addr phdr = 0; local [all...] |
dwfl_module_getdwarf.c | 292 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); local 293 if (phdr != NULL && phdr->p_type == PT_LOAD && phdr->p_memsz > 0) 296 && addrs[j] >= phdr->p_vaddr 297 && addrs[j] - phdr->p_vaddr < phdr->p_filesz) 299 offs[j] = addrs[j] - phdr->p_vaddr + phdr->p_offset; 316 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem) local [all...] |
/external/compiler-rt/lib/msan/ |
msan_linux.cc | 95 typedef ElfW(Phdr) Elf_Phdr; 107 Elf_Phdr *phdr = (Elf_Phdr *)iter; local 108 if (phdr->p_type == PT_LOAD) 109 preferred_base = std::min(preferred_base, (uptr)phdr->p_vaddr); 116 Elf_Phdr *phdr = (Elf_Phdr *)iter; local 117 if (phdr->p_type == PT_LOAD) { 118 uptr seg_start = phdr->p_vaddr + delta; 119 uptr seg_end = seg_start + phdr->p_memsz;
|
/external/qemu/ |
elf_ops.h | 18 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 = NULL, *ph local [all...] |
/external/wpa_supplicant_8/src/eap_peer/ |
ikev2.c | 877 struct ikev2_payload_hdr *phdr; local 885 phdr = wpabuf_put(msg, sizeof(*phdr)); 886 phdr->next_payload = next_payload; 887 phdr->flags = 0; 939 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; 940 WPA_PUT_BE16(phdr->payload_length, plen); 949 struct ikev2_payload_hdr *phdr; local 962 phdr = wpabuf_put(msg, sizeof(*phdr)); 985 struct ikev2_payload_hdr *phdr; local 1004 struct ikev2_payload_hdr *phdr; local 1030 struct ikev2_payload_hdr *phdr; local 1070 struct ikev2_payload_hdr *phdr; local [all...] |
/external/elfutils/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/valgrind/main/coregrind/ |
pub_core_ume.h | 53 Addr phdr; // OUT: address phdr was mapped at member in struct:__anon16978
|
/external/wpa_supplicant_8/src/eap_server/ |
ikev2.c | 907 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...] |
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_symbolizer_linux.cc | 130 typedef ElfW(Phdr) Elf_Phdr; 163 const Elf_Phdr *phdr = &info->dlpi_phdr[i]; local 164 if (phdr->p_type == PT_LOAD) { 165 uptr cur_beg = info->dlpi_addr + phdr->p_vaddr; 166 uptr cur_end = cur_beg + phdr->p_memsz;
|
/external/elfutils/src/ |
elflint.c | 798 GElf_Phdr *phdr = NULL; local 803 phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem); 804 if (phdr != NULL && phdr->p_type == PT_TLS) 818 < destshdr->sh_offset - phdr->p_offset) 824 > (destshdr->sh_offset - phdr->p_offset 831 > (destshdr->sh_offset - phdr->p_offset 959 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem); local 961 if (phdr != NULL && phdr->p_type == PT_DYNAMIC 1205 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, i, &phdr_mem); local 1692 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, n, &phdr_mem); local 2769 GElf_Phdr *phdr = NULL; local 3668 GElf_Phdr *phdr; local 3826 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem); local 4045 GElf_Phdr *phdr; local [all...] |
/external/wpa_supplicant_8/src/eap_common/ |
ikev2_common.c | 314 const struct ikev2_payload_hdr *phdr; local 323 if (end - pos < (int) sizeof(*phdr)) { 328 phdr = (const struct ikev2_payload_hdr *) pos; 329 plen = WPA_GET_BE16(phdr->payload_length); 330 if (plen < (int) sizeof(*phdr) || pos + plen > end) { 338 phdr->next_payload, phdr->flags, plen); 340 pdata = (const u8 *) (phdr + 1); 341 pdatalen = plen - sizeof(*phdr); 394 if (phdr->flags & IKEV2_PAYLOAD_FLAGS_CRITICAL) 596 struct ikev2_payload_hdr *phdr; local [all...] |