Lines Matching refs:Phdr
313 if (phdr_num_ < 1 || phdr_num_ > 65536/sizeof(ElfW(Phdr))) { in ReadProgramHeaders()
319 size_t size = phdr_num_ * sizeof(ElfW(Phdr)); in ReadProgramHeaders()
320 if (!CheckFileRange(header_.e_phoff, size, alignof(ElfW(Phdr)))) { in ReadProgramHeaders()
333 phdr_table_ = static_cast<ElfW(Phdr)*>(phdr_fragment_.data()); in ReadProgramHeaders()
382 const ElfW(Phdr)* phdr = &phdr_table_[i]; in ReadDynamicSection()
476 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_load_size()
484 const ElfW(Phdr)* phdr = &phdr_table[i]; in phdr_table_get_load_size()
613 const ElfW(Phdr)* phdr = &phdr_table_[i]; in LoadSegments()
708 static int _phdr_table_set_load_prot(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _phdr_table_set_load_prot()
710 const ElfW(Phdr)* phdr = phdr_table; in _phdr_table_set_load_prot()
711 const ElfW(Phdr)* phdr_limit = phdr + phdr_count; in _phdr_table_set_load_prot()
748 int phdr_table_protect_segments(const ElfW(Phdr)* phdr_table, in phdr_table_protect_segments()
769 int phdr_table_unprotect_segments(const ElfW(Phdr)* phdr_table, in phdr_table_unprotect_segments()
777 static int _phdr_table_set_gnu_relro_prot(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _phdr_table_set_gnu_relro_prot()
779 const ElfW(Phdr)* phdr = phdr_table; in _phdr_table_set_gnu_relro_prot()
780 const ElfW(Phdr)* phdr_limit = phdr + phdr_count; in _phdr_table_set_gnu_relro_prot()
832 int phdr_table_protect_gnu_relro(const ElfW(Phdr)* phdr_table, in phdr_table_protect_gnu_relro()
849 int phdr_table_serialize_gnu_relro(const ElfW(Phdr)* phdr_table, in phdr_table_serialize_gnu_relro()
853 const ElfW(Phdr)* phdr = phdr_table; in phdr_table_serialize_gnu_relro()
854 const ElfW(Phdr)* phdr_limit = phdr + phdr_count; in phdr_table_serialize_gnu_relro()
896 int phdr_table_map_gnu_relro(const ElfW(Phdr)* phdr_table, in phdr_table_map_gnu_relro()
916 const ElfW(Phdr)* phdr = phdr_table; in phdr_table_map_gnu_relro()
917 const ElfW(Phdr)* phdr_limit = phdr + phdr_count; in phdr_table_map_gnu_relro()
993 int phdr_table_get_arm_exidx(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_arm_exidx()
996 const ElfW(Phdr)* phdr = phdr_table; in phdr_table_get_arm_exidx()
997 const ElfW(Phdr)* phdr_limit = phdr + phdr_count; in phdr_table_get_arm_exidx()
1027 void phdr_table_get_dynamic_section(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_dynamic_section()
1032 const ElfW(Phdr)& phdr = phdr_table[i]; in phdr_table_get_dynamic_section()
1052 const char* phdr_table_get_interpreter_name(const ElfW(Phdr) * phdr_table, size_t phdr_count, in phdr_table_get_interpreter_name()
1055 const ElfW(Phdr)& phdr = phdr_table[i]; in phdr_table_get_interpreter_name()
1067 const ElfW(Phdr)* phdr_limit = phdr_table_ + phdr_num_; in FindPhdr()
1070 for (const ElfW(Phdr)* phdr = phdr_table_; phdr < phdr_limit; ++phdr) { in FindPhdr()
1079 for (const ElfW(Phdr)* phdr = phdr_table_; phdr < phdr_limit; ++phdr) { in FindPhdr()
1099 const ElfW(Phdr)* phdr_limit = phdr_table_ + phdr_num_; in CheckPhdr()
1100 ElfW(Addr) loaded_end = loaded + (phdr_num_ * sizeof(ElfW(Phdr))); in CheckPhdr()
1101 for (const ElfW(Phdr)* phdr = phdr_table_; phdr < phdr_limit; ++phdr) { in CheckPhdr()
1108 loaded_phdr_ = reinterpret_cast<const ElfW(Phdr)*>(loaded); in CheckPhdr()