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()
558 ElfW(Addr) min_vaddr; in ReserveAddressSpace()
602 ElfW(Addr) seg_start = phdr->p_vaddr + load_bias_; in LoadSegments()
603 ElfW(Addr) seg_end = seg_start + phdr->p_memsz; in LoadSegments()
605 ElfW(Addr) seg_page_start = PAGE_START(seg_start); in LoadSegments()
606 ElfW(Addr) seg_page_end = PAGE_END(seg_end); in LoadSegments()
608 ElfW(Addr) seg_file_end = seg_start + phdr->p_filesz; in LoadSegments()
611 ElfW(Addr) file_start = phdr->p_offset; in LoadSegments()
612 ElfW(Addr) file_end = file_start + phdr->p_filesz; in LoadSegments()
614 ElfW(Addr) file_page_start = PAGE_START(file_start); in LoadSegments()
615 ElfW(Addr) file_length = file_end - file_page_start; in LoadSegments()
694 ElfW(Addr) load_bias, int extra_prot_flags) { in _phdr_table_set_load_prot()
703 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in _phdr_table_set_load_prot()
704 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz) + load_bias; in _phdr_table_set_load_prot()
734 size_t phdr_count, ElfW(Addr) load_bias) { in phdr_table_protect_segments()
755 size_t phdr_count, ElfW(Addr) load_bias) { in phdr_table_unprotect_segments()
763 ElfW(Addr) load_bias, int prot_flags) { in _phdr_table_set_gnu_relro_prot()
788 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in _phdr_table_set_gnu_relro_prot()
789 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz) + load_bias; in _phdr_table_set_gnu_relro_prot()
818 size_t phdr_count, ElfW(Addr) load_bias) { in phdr_table_protect_gnu_relro()
837 ElfW(Addr) load_bias, in phdr_table_serialize_gnu_relro()
848 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in phdr_table_serialize_gnu_relro()
849 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz) + load_bias; in phdr_table_serialize_gnu_relro()
885 ElfW(Addr) load_bias, in phdr_table_map_gnu_relro()
911 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in phdr_table_map_gnu_relro()
912 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz) + load_bias; in phdr_table_map_gnu_relro()
981 ElfW(Addr) load_bias, in phdr_table_get_arm_exidx()
982 ElfW(Addr)** arm_exidx, size_t* arm_exidx_count) { in phdr_table_get_arm_exidx()
991 *arm_exidx = reinterpret_cast<ElfW(Addr)*>(load_bias + phdr->p_vaddr); in phdr_table_get_arm_exidx()
1015 ElfW(Addr) load_bias, ElfW(Dyn)** dynamic, in phdr_table_get_dynamic_section()
1040 ElfW(Addr) load_bias) { in phdr_table_get_interpreter_name()
1069 ElfW(Addr) elf_addr = load_bias_ + phdr->p_vaddr; in FindPhdr()
1071 ElfW(Addr) offset = ehdr->e_phoff; in FindPhdr()
1072 return CheckPhdr(reinterpret_cast<ElfW(Addr)>(ehdr) + offset); in FindPhdr()
1085 bool ElfReader::CheckPhdr(ElfW(Addr) loaded) { in CheckPhdr()
1087 ElfW(Addr) loaded_end = loaded + (phdr_num_ * sizeof(ElfW(Phdr))); in CheckPhdr()
1092 ElfW(Addr) seg_start = phdr->p_vaddr + load_bias_; in CheckPhdr()
1093 ElfW(Addr) seg_end = phdr->p_filesz + seg_start; in CheckPhdr()