/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...] |
/external/elfutils/tests/ |
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...] |
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...] |
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...] |
/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/elfutils/libdwfl/ |
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);
|
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_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...] |
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...] |
/external/valgrind/main/coregrind/ |
pub_core_ume.h | 53 Addr phdr; // OUT: address phdr was mapped at member in struct:__anon28030
|
/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...] |
/bionic/linker/ |
linker_phdr.cpp | 220 DL_ERR("\"%s\" phdr mmap failed: %s", name_, strerror(errno)); 249 const Elf32_Phdr* phdr = &phdr_table[i]; local 251 if (phdr->p_type != PT_LOAD) { 256 if (phdr->p_vaddr < min_vaddr) { 257 min_vaddr = phdr->p_vaddr; 260 if (phdr->p_vaddr + phdr->p_memsz > max_vaddr) { 261 max_vaddr = phdr->p_vaddr + phdr->p_memsz; 310 const Elf32_Phdr* phdr = &phdr_table_[i] local 383 const Elf32_Phdr* phdr = phdr_table; local 457 const Elf32_Phdr* phdr = phdr_table; local 547 const Elf32_Phdr* phdr = phdr_table; local 586 const Elf32_Phdr* phdr = phdr_table; local [all...] |
linker.h | 103 const Elf32_Phdr* phdr; member in struct:soinfo
|
/external/elfutils/src/ |
findtextrel.c | 322 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); local 323 if (phdr == NULL) 332 if (phdr->p_type == PT_LOAD && (phdr->p_flags & PF_W) == 0) 351 segments[nsegments].from = phdr->p_vaddr; 352 segments[nsegments].to = phdr->p_vaddr + phdr->p_memsz;
|
size.c | 625 GElf_Phdr *phdr; local 627 phdr = gelf_getphdr (elf, cnt, &phdr_mem); 628 if (phdr == NULL) 631 if (phdr->p_type != PT_LOAD) 642 phdr->p_memsz, 643 (phdr->p_flags & PF_R) == 0 ? '-' : 'r', 644 (phdr->p_flags & PF_W) == 0 ? '-' : 'w', 645 (phdr->p_flags & PF_X) == 0 ? '-' : 'x'); 647 total += phdr->p_memsz;
|
/external/grub/stage2/ |
boot.c | 593 Elf32_Phdr *phdr; local 601 phdr = (Elf32_Phdr *) 604 if (phdr->p_type == PT_LOAD) 607 grub_seek (phdr->p_offset); 608 filesiz = phdr->p_filesz; 611 memaddr = RAW_ADDR (phdr->p_paddr & 0xFFFFFF); 613 memaddr = RAW_ADDR (phdr->p_paddr); 615 memsiz = phdr->p_memsz; 622 && (unsigned) entry_addr >= phdr->p_vaddr 623 && (unsigned) entry_addr < phdr->p_vaddr + memsiz [all...] |
/external/tcpdump/ |
print-dccp.c | 67 struct phdr { struct in union:phu
|
print-tcp.c | 119 struct phdr { struct in union:phu
|
print-udp.c | 292 struct phdr { struct in union:phu
|
/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...] |
/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/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...] |
/frameworks/compile/mclinker/lib/LD/ |
ELFObjectWriter.cpp | 195 typedef typename ELFSizeTraits<SIZE>::Phdr ElfXX_Phdr; 330 typedef typename ELFSizeTraits<SIZE>::Phdr ElfXX_Phdr; 340 ElfXX_Phdr* phdr = (ElfXX_Phdr*)region->start(); local 347 phdr[index].p_type = (*seg).type(); 348 phdr[index].p_flags = (*seg).flag(); 349 phdr[index].p_offset = (*seg).offset(); 350 phdr[index].p_vaddr = (*seg).vaddr(); 351 phdr[index].p_paddr = (*seg).paddr(); 352 phdr[index].p_filesz = (*seg).filesz(); 353 phdr[index].p_memsz = (*seg).memsz() [all...] |