Home
last modified time | relevance | path

Searched refs:Phdr (Results 1 – 21 of 21) sorted by relevance

/bionic/linker/
Dlinker_phdr.h56 const ElfW(Phdr)* loaded_phdr() const { return loaded_phdr_; } in ElfW() argument
88 const ElfW(Phdr)* phdr_table_;
113 const ElfW(Phdr)* loaded_phdr_;
125 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count,
128 size_t phdr_table_get_maximum_alignment(const ElfW(Phdr)* phdr_table, size_t phdr_count);
130 int phdr_table_protect_segments(const ElfW(Phdr)* phdr_table, size_t phdr_count,
134 int phdr_table_unprotect_segments(const ElfW(Phdr)* phdr_table, size_t phdr_count,
137 int phdr_table_protect_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
140 int phdr_table_serialize_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
143 int phdr_table_map_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
[all …]
Dlinker_phdr.cpp350 if (phdr_num_ < 1 || phdr_num_ > 65536/sizeof(ElfW(Phdr))) { in ReadProgramHeaders()
356 size_t size = phdr_num_ * sizeof(ElfW(Phdr)); in ReadProgramHeaders()
357 if (!CheckFileRange(header_.e_phoff, size, alignof(ElfW(Phdr)))) { in ReadProgramHeaders()
370 phdr_table_ = static_cast<ElfW(Phdr)*>(phdr_fragment_.data()); in ReadProgramHeaders()
419 const ElfW(Phdr)* phdr = &phdr_table_[i]; in ReadDynamicSection()
517 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_load_size()
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()
563 const ElfW(Phdr)* phdr = &phdr_table[i]; in phdr_table_get_maximum_alignment()
733 const ElfW(Phdr)* phdr = &phdr_table_[i]; in ReadPadSegmentNote()
[all …]
Dlinker_main.cpp68 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count,
172 si->phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<char*>(ehdr_vdso) + ehdr_vdso->e_phoff); in add_vdso()
203 const ElfW(Phdr)* phdr;
230 result.phdr = reinterpret_cast<const ElfW(Phdr)*>(getauxval(AT_PHDR)); in get_executable_info()
545 const ElfW(Phdr)* phdr_table = in get_elf_exec_load_bias()
546 reinterpret_cast<const ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(elf) + offset); in get_elf_exec_load_bias()
547 const ElfW(Phdr)* phdr_end = phdr_table + elf->e_phnum; in get_elf_exec_load_bias()
549 for (const ElfW(Phdr)* phdr = phdr_table; phdr < phdr_end; phdr++) { in get_elf_exec_load_bias()
562 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count, in get_elf_base_from_phdr()
632 auto* phdr = reinterpret_cast<ElfW(Phdr)*>(ehdr + __ehdr_start.e_phoff); in relocate_linker()
[all …]
Dlinker_note_gnu_property.h79 GnuPropertySection(const ElfW(Phdr)* phdr, size_t phdr_count, const ElfW(Addr) load_bias,
87 const ElfW(NhdrGNUProperty)* FindSegment(const ElfW(Phdr)* phdr, size_t phdr_count,
Dlinker_wrapper.cpp44 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count, in get_elf_base_from_phdr()
65 reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR)), args.getauxval(AT_PHNUM), in __linker_init()
Dlinker_note_gnu_property_test.cpp67 ElfW(Phdr) phdrs[] = { \
198 ElfW(Phdr) phdrs[] = { in TEST()
211 ElfW(Phdr) phdrs[] = { in TEST()
233 ElfW(Phdr) phdrs[] = { in TEST()
Dlinker_note_gnu_property.cpp42 GnuPropertySection::GnuPropertySection(const ElfW(Phdr)* phdr, size_t phdr_count, in GnuPropertySection()
53 const ElfW(NhdrGNUProperty)* GnuPropertySection::FindSegment(const ElfW(Phdr)* phdr, in ElfW()
Dlinker_soinfo.h165 const ElfW(Phdr)* phdr;
Dlinker.cpp863 const ElfW(Phdr)* phdr = &si->phdr[i]; in find_containing_library()
/bionic/libc/bionic/
Delf_note.cpp35 const ElfW(Phdr)* phdr_note, const ElfW(Nhdr)** note_hdr, in __get_elf_note()
70 bool __find_elf_note(unsigned int note_type, const char* note_name, const ElfW(Phdr)* phdr_start, in __find_elf_note()
74 const ElfW(Phdr)* phdr = &phdr_start[i]; in __find_elf_note()
Dlibc_init_static.cpp114 ElfW(Phdr)* phdr_start = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)); in apply_gnu_relro()
117 for (ElfW(Phdr)* phdr = phdr_start; phdr < (phdr_start + phdr_ct); phdr++) { in apply_gnu_relro()
135 ElfW(Phdr)* phdr_start = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)); in layout_static_tls()
161 static HeapTaggingLevel __get_memtag_level_from_note(const ElfW(Phdr) * phdr_start, size_t phdr_ct, in __get_memtag_level_from_note()
286 level = __get_memtag_level_from_note(reinterpret_cast<const ElfW(Phdr)*>(phdr_start), phdr_ct, in __get_tagging_level()
416 reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)), getauxval(AT_PHNUM), in __real_libc_init()
Dlibc_init_dynamic.cpp75 const ElfW(Phdr)* phdr,
78 const ElfW(Phdr)* phdr,
Ddl_iterate_phdr_static.cpp57 …exe_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(ehdr) + ehdr->e_pho… in dl_iterate_phdr()
91 …vdso_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<char*>(ehdr_vdso) + ehdr_vdso… in dl_iterate_phdr()
Dvdso.cpp144 ElfW(Phdr)* vdso_phdr = reinterpret_cast<ElfW(Phdr)*>(vdso_ehdr_addr + vdso_ehdr->e_phoff); in __libc_init_vdso()
Dbionic_elf_tls.cpp58 bool __bionic_get_tls_segment(const ElfW(Phdr)* phdr_table, size_t phdr_count, in __bionic_get_tls_segment()
61 const ElfW(Phdr)& phdr = phdr_table[i]; in __bionic_get_tls_segment()
/bionic/libc/private/
Delf_note.h36 const ElfW(Phdr)* phdr_note, const ElfW(Nhdr)** note_hdr,
40 bool __find_elf_note(unsigned int note_type, const char* note_name, const ElfW(Phdr)* phdr_start,
Dbionic_globals.h115 void (*load_hook)(ElfW(Addr) base, const ElfW(Phdr)* phdr, ElfW(Half) phnum) = nullptr;
116 void (*unload_hook)(ElfW(Addr) base, const ElfW(Phdr)* phdr, ElfW(Half) phnum) = nullptr;
Dbionic_elf_tls.h67 __LIBC_HIDDEN__ bool __bionic_get_tls_segment(const ElfW(Phdr)* phdr_table, size_t phdr_count,
/bionic/tests/
Dlink_test.cpp65 const ElfW(Phdr)* phdr = reinterpret_cast<const ElfW(Phdr)*>(&info->dlpi_phdr[i]); in TEST()
131 const ElfW(Phdr)* table;
173 .table = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)), in TEST()
/bionic/libc/include/
Dlink.h61 const ElfW(Phdr)* _Nullable dlpi_phdr;
/bionic/libc/malloc_debug/
DMapData.cpp120 ElfW(Phdr) phdr; in GetLoadBias()