Home
last modified time | relevance | path

Searched refs:phdr (Results 1 – 6 of 6) sorted by relevance

/bionic/linker/
Dlinker_phdr.cpp387 const ElfW(Phdr)* phdr = &phdr_table[i]; in phdr_table_get_load_size()
389 if (phdr->p_type != PT_LOAD) { in phdr_table_get_load_size()
394 if (phdr->p_vaddr < min_vaddr) { in phdr_table_get_load_size()
395 min_vaddr = phdr->p_vaddr; in phdr_table_get_load_size()
398 if (phdr->p_vaddr + phdr->p_memsz > max_vaddr) { in phdr_table_get_load_size()
399 max_vaddr = phdr->p_vaddr + phdr->p_memsz; in phdr_table_get_load_size()
483 const ElfW(Phdr)* phdr = &phdr_table_[i]; in LoadSegments()
485 if (phdr->p_type != PT_LOAD) { in LoadSegments()
490 ElfW(Addr) seg_start = phdr->p_vaddr + load_bias_; in LoadSegments()
491 ElfW(Addr) seg_end = seg_start + phdr->p_memsz; in LoadSegments()
[all …]
Dlinker.cpp597 dl_info.dlpi_phdr = si->phdr; in do_dl_iterate_phdr()
1184 si_->phdr = elf_reader.loaded_phdr(); in load()
2818 if (phdr_table_protect_segments(phdr, phnum, load_bias) < 0) { in relocate()
2828 if (phdr_table_unprotect_segments(phdr, phnum, load_bias) < 0) { in relocate()
2877 if (phdr_table_protect_segments(phdr, phnum, load_bias) < 0) { in relocate()
2888 if (phdr_table_unprotect_segments(phdr, phnum, load_bias) < 0) { in relocate()
3472 phdr_table_get_dynamic_section(phdr, phnum, load_bias, &dynamic, &dynamic_flags); in prelink_image()
3493 (void) phdr_table_get_arm_exidx(phdr, phnum, load_bias, in prelink_image()
3937 if (phdr_table_unprotect_segments(phdr, phnum, load_bias) < 0) { in link_image()
4016 if (phdr_table_protect_segments(phdr, phnum, load_bias) < 0) { in link_image()
[all …]
Dlinker_mips.cpp246 const ElfW(Phdr)& ph = phdr[i]; in mips_check_and_adjust_fp_modes()
Dlinker.h185 const ElfW(Phdr)* phdr;
/bionic/libc/bionic/
Dlibc_init_static.cpp59 for (ElfW(Phdr)* phdr = phdr_start; phdr < (phdr_start + phdr_ct); phdr++) { in apply_gnu_relro()
60 if (phdr->p_type != PT_GNU_RELRO) { in apply_gnu_relro()
64 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr); in apply_gnu_relro()
65 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz); in apply_gnu_relro()
/bionic/libc/malloc_debug/
DMapData.cpp95 ElfW(Phdr) phdr; in read_loadbase() local
96 if (!get_val<ElfW(Word)>(entry, addr + offsetof(ElfW(Phdr), p_type), &phdr.p_type)) { in read_loadbase()
99 if (!get_val<ElfW(Off)>(entry, addr + offsetof(ElfW(Phdr), p_offset), &phdr.p_offset)) { in read_loadbase()
102 if (phdr.p_type == PT_LOAD && phdr.p_offset == entry->offset) { in read_loadbase()
103 if (!get_val<ElfW(Addr)>(entry, addr + offsetof(ElfW(Phdr), p_vaddr), &phdr.p_vaddr)) { in read_loadbase()
106 entry->load_base = phdr.p_vaddr; in read_loadbase()
109 addr += sizeof(phdr); in read_loadbase()