Lines Matching refs:Phdr

315   if (phdr_num_ < 1 || phdr_num_ > 65536/sizeof(ElfW(Phdr))) {  in ReadProgramHeaders()
321 size_t size = phdr_num_ * sizeof(ElfW(Phdr)); in ReadProgramHeaders()
322 if (!CheckFileRange(header_.e_phoff, size, alignof(ElfW(Phdr)))) { in ReadProgramHeaders()
335 phdr_table_ = static_cast<ElfW(Phdr)*>(phdr_fragment_.data()); in ReadProgramHeaders()
384 const ElfW(Phdr)* phdr = &phdr_table_[i]; in ReadDynamicSection()
482 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_load_size()
490 const ElfW(Phdr)* phdr = &phdr_table[i]; in phdr_table_get_load_size()
640 const ElfW(Phdr)* phdr = &phdr_table_[i]; in LoadSegments()
738 static int _phdr_table_set_load_prot(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _phdr_table_set_load_prot()
740 const ElfW(Phdr)* phdr = phdr_table; in _phdr_table_set_load_prot()
741 const ElfW(Phdr)* phdr_limit = phdr + phdr_count; in _phdr_table_set_load_prot()
778 int phdr_table_protect_segments(const ElfW(Phdr)* phdr_table, in phdr_table_protect_segments()
799 int phdr_table_unprotect_segments(const ElfW(Phdr)* phdr_table, in phdr_table_unprotect_segments()
807 static int _phdr_table_set_gnu_relro_prot(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _phdr_table_set_gnu_relro_prot()
809 const ElfW(Phdr)* phdr = phdr_table; in _phdr_table_set_gnu_relro_prot()
810 const ElfW(Phdr)* phdr_limit = phdr + phdr_count; in _phdr_table_set_gnu_relro_prot()
862 int phdr_table_protect_gnu_relro(const ElfW(Phdr)* phdr_table, in phdr_table_protect_gnu_relro()
880 int phdr_table_serialize_gnu_relro(const ElfW(Phdr)* phdr_table, in phdr_table_serialize_gnu_relro()
885 const ElfW(Phdr)* phdr = phdr_table; in phdr_table_serialize_gnu_relro()
886 const ElfW(Phdr)* phdr_limit = phdr + phdr_count; in phdr_table_serialize_gnu_relro()
928 int phdr_table_map_gnu_relro(const ElfW(Phdr)* phdr_table, in phdr_table_map_gnu_relro()
948 const ElfW(Phdr)* phdr = phdr_table; in phdr_table_map_gnu_relro()
949 const ElfW(Phdr)* phdr_limit = phdr + phdr_count; in phdr_table_map_gnu_relro()
1025 int phdr_table_get_arm_exidx(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_arm_exidx()
1028 const ElfW(Phdr)* phdr = phdr_table; in phdr_table_get_arm_exidx()
1029 const ElfW(Phdr)* phdr_limit = phdr + phdr_count; in phdr_table_get_arm_exidx()
1059 void phdr_table_get_dynamic_section(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_dynamic_section()
1064 const ElfW(Phdr)& phdr = phdr_table[i]; in phdr_table_get_dynamic_section()
1084 const char* phdr_table_get_interpreter_name(const ElfW(Phdr) * phdr_table, size_t phdr_count, in phdr_table_get_interpreter_name()
1087 const ElfW(Phdr)& phdr = phdr_table[i]; in phdr_table_get_interpreter_name()
1099 const ElfW(Phdr)* phdr_limit = phdr_table_ + phdr_num_; in FindPhdr()
1102 for (const ElfW(Phdr)* phdr = phdr_table_; phdr < phdr_limit; ++phdr) { in FindPhdr()
1111 for (const ElfW(Phdr)* phdr = phdr_table_; phdr < phdr_limit; ++phdr) { in FindPhdr()
1131 const ElfW(Phdr)* phdr_limit = phdr_table_ + phdr_num_; in CheckPhdr()
1132 ElfW(Addr) loaded_end = loaded + (phdr_num_ * sizeof(ElfW(Phdr))); in CheckPhdr()
1133 for (const ElfW(Phdr)* phdr = phdr_table_; phdr < phdr_limit; ++phdr) { in CheckPhdr()
1140 loaded_phdr_ = reinterpret_cast<const ElfW(Phdr)*>(loaded); in CheckPhdr()