Lines Matching refs:phdr_table

517 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count,  in phdr_table_get_load_size()  argument
525 const ElfW(Phdr)* phdr = &phdr_table[i]; in phdr_table_get_load_size()
559 size_t phdr_table_get_maximum_alignment(const ElfW(Phdr)* phdr_table, size_t phdr_count) { in phdr_table_get_maximum_alignment() argument
563 const ElfW(Phdr)* phdr = &phdr_table[i]; in phdr_table_get_maximum_alignment()
788 static inline void _extend_load_segment_vma(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _extend_load_segment_vma() argument
791 const ElfW(Phdr)* phdr = &phdr_table[phdr_idx]; in _extend_load_segment_vma()
808 if (next_idx < phdr_count && phdr_table[next_idx].p_type == PT_LOAD) { in _extend_load_segment_vma()
809 next = &phdr_table[next_idx]; in _extend_load_segment_vma()
971 static int _phdr_table_set_load_prot(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _phdr_table_set_load_prot() argument
975 const ElfW(Phdr)* phdr = &phdr_table[i]; in _phdr_table_set_load_prot()
983 _extend_load_segment_vma(phdr_table, phdr_count, i, &p_memsz, &p_filesz, should_pad_segments); in _phdr_table_set_load_prot()
1026 int phdr_table_protect_segments(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_protect_segments() argument
1035 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, prot, should_pad_segments); in phdr_table_protect_segments()
1055 int phdr_table_unprotect_segments(const ElfW(Phdr)* phdr_table, in phdr_table_unprotect_segments() argument
1058 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, PROT_WRITE, in phdr_table_unprotect_segments()
1063 const ElfW(Phdr)* phdr_table, size_t phdr_count, in _extend_gnu_relro_prot_end() argument
1068 const ElfW(Phdr)* phdr = &phdr_table[index]; in _extend_gnu_relro_prot_end()
1112 _extend_load_segment_vma(phdr_table, phdr_count, index, &p_memsz, &p_filesz, in _extend_gnu_relro_prot_end()
1124 static int _phdr_table_set_gnu_relro_prot(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _phdr_table_set_gnu_relro_prot() argument
1127 const ElfW(Phdr)* phdr = phdr_table; in _phdr_table_set_gnu_relro_prot()
1130 for (phdr = phdr_table; phdr < phdr_limit; phdr++) { in _phdr_table_set_gnu_relro_prot()
1153 _extend_gnu_relro_prot_end(phdr, phdr_table, phdr_count, load_bias, &seg_page_end, in _phdr_table_set_gnu_relro_prot()
1183 int phdr_table_protect_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_protect_gnu_relro() argument
1185 return _phdr_table_set_gnu_relro_prot(phdr_table, phdr_count, load_bias, PROT_READ, in phdr_table_protect_gnu_relro()
1202 int phdr_table_serialize_gnu_relro(const ElfW(Phdr)* phdr_table, in phdr_table_serialize_gnu_relro() argument
1207 const ElfW(Phdr)* phdr = phdr_table; in phdr_table_serialize_gnu_relro()
1210 for (phdr = phdr_table; phdr < phdr_limit; phdr++) { in phdr_table_serialize_gnu_relro()
1250 int phdr_table_map_gnu_relro(const ElfW(Phdr)* phdr_table, in phdr_table_map_gnu_relro() argument
1270 const ElfW(Phdr)* phdr = phdr_table; in phdr_table_map_gnu_relro()
1273 for (phdr = phdr_table; phdr < phdr_limit; phdr++) { in phdr_table_map_gnu_relro()
1342 int phdr_table_get_arm_exidx(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_arm_exidx() argument
1345 const ElfW(Phdr)* phdr = phdr_table; in phdr_table_get_arm_exidx()
1348 for (phdr = phdr_table; phdr < phdr_limit; phdr++) { in phdr_table_get_arm_exidx()
1376 void phdr_table_get_dynamic_section(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_dynamic_section() argument
1381 const ElfW(Phdr)& phdr = phdr_table[i]; in phdr_table_get_dynamic_section()
1401 const char* phdr_table_get_interpreter_name(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_interpreter_name() argument
1404 const ElfW(Phdr)& phdr = phdr_table[i]; in phdr_table_get_interpreter_name()