Lines Matching refs:Addr

292 bool ElfReader::CheckFileRange(ElfW(Addr) offset, size_t size, size_t alignment) {  in CheckFileRange()
483 ElfW(Addr)* out_min_vaddr, in phdr_table_get_load_size()
484 ElfW(Addr)* out_max_vaddr) { in phdr_table_get_load_size()
485 ElfW(Addr) min_vaddr = UINTPTR_MAX; in phdr_table_get_load_size()
486 ElfW(Addr) max_vaddr = 0; in phdr_table_get_load_size()
601 ElfW(Addr) min_vaddr; in ReserveAddressSpace()
647 ElfW(Addr) seg_start = phdr->p_vaddr + load_bias_; in LoadSegments()
648 ElfW(Addr) seg_end = seg_start + phdr->p_memsz; in LoadSegments()
650 ElfW(Addr) seg_page_start = PAGE_START(seg_start); in LoadSegments()
651 ElfW(Addr) seg_page_end = PAGE_END(seg_end); in LoadSegments()
653 ElfW(Addr) seg_file_end = seg_start + phdr->p_filesz; in LoadSegments()
656 ElfW(Addr) file_start = phdr->p_offset; in LoadSegments()
657 ElfW(Addr) file_end = file_start + phdr->p_filesz; in LoadSegments()
659 ElfW(Addr) file_page_start = PAGE_START(file_start); in LoadSegments()
660 ElfW(Addr) file_length = file_end - file_page_start; in LoadSegments()
739 ElfW(Addr) load_bias, int extra_prot_flags) { in _phdr_table_set_load_prot()
748 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in _phdr_table_set_load_prot()
749 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz) + load_bias; in _phdr_table_set_load_prot()
779 size_t phdr_count, ElfW(Addr) load_bias) { in phdr_table_protect_segments()
800 size_t phdr_count, ElfW(Addr) load_bias) { in phdr_table_unprotect_segments()
808 ElfW(Addr) load_bias, int prot_flags) { in _phdr_table_set_gnu_relro_prot()
833 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in _phdr_table_set_gnu_relro_prot()
834 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz) + load_bias; in _phdr_table_set_gnu_relro_prot()
863 size_t phdr_count, ElfW(Addr) load_bias) { in phdr_table_protect_gnu_relro()
882 ElfW(Addr) load_bias, in phdr_table_serialize_gnu_relro()
893 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in phdr_table_serialize_gnu_relro()
894 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz) + load_bias; in phdr_table_serialize_gnu_relro()
930 ElfW(Addr) load_bias, in phdr_table_map_gnu_relro()
956 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in phdr_table_map_gnu_relro()
957 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz) + load_bias; in phdr_table_map_gnu_relro()
1026 ElfW(Addr) load_bias, in phdr_table_get_arm_exidx()
1027 ElfW(Addr)** arm_exidx, size_t* arm_exidx_count) { in phdr_table_get_arm_exidx()
1036 *arm_exidx = reinterpret_cast<ElfW(Addr)*>(load_bias + phdr->p_vaddr); in phdr_table_get_arm_exidx()
1060 ElfW(Addr) load_bias, ElfW(Dyn)** dynamic, in phdr_table_get_dynamic_section()
1085 ElfW(Addr) load_bias) { in phdr_table_get_interpreter_name()
1114 ElfW(Addr) elf_addr = load_bias_ + phdr->p_vaddr; in FindPhdr()
1116 ElfW(Addr) offset = ehdr->e_phoff; in FindPhdr()
1117 return CheckPhdr(reinterpret_cast<ElfW(Addr)>(ehdr) + offset); in FindPhdr()
1130 bool ElfReader::CheckPhdr(ElfW(Addr) loaded) { in CheckPhdr()
1132 ElfW(Addr) loaded_end = loaded + (phdr_num_ * sizeof(ElfW(Phdr))); in CheckPhdr()
1137 ElfW(Addr) seg_start = phdr->p_vaddr + load_bias_; in CheckPhdr()
1138 ElfW(Addr) seg_end = phdr->p_filesz + seg_start; in CheckPhdr()