Lines Matching full:phdr
604 dl_info.dlpi_phdr = si->phdr;
1191 si_->phdr = elf_reader.loaded_phdr();
2844 if (phdr_table_protect_segments(phdr, phnum, load_bias) < 0) {
2854 if (phdr_table_unprotect_segments(phdr, phnum, load_bias) < 0) {
2903 if (phdr_table_protect_segments(phdr, phnum, load_bias) < 0) {
2914 if (phdr_table_unprotect_segments(phdr, phnum, load_bias) < 0) {
3498 phdr_table_get_dynamic_section(phdr, phnum, load_bias, &dynamic, &dynamic_flags);
3519 (void) phdr_table_get_arm_exidx(phdr, phnum, load_bias,
3963 if (phdr_table_unprotect_segments(phdr, phnum, load_bias) < 0) {
4042 if (phdr_table_protect_segments(phdr, phnum, load_bias) < 0) {
4058 if (phdr_table_serialize_gnu_relro(phdr, phnum, load_bias,
4065 if (phdr_table_map_gnu_relro(phdr, phnum, load_bias,
4078 if (phdr_table_protect_gnu_relro(phdr, phnum, load_bias) < 0) {
4100 si->phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<char*>(ehdr_vdso) + ehdr_vdso->e_phoff);
4103 si->size = phdr_table_get_load_size(si->phdr, si->phnum);
4135 ElfW(Phdr)* phdr = reinterpret_cast<ElfW(Phdr)*>(linker_base + elf_hdr->e_phoff);
4136 phdr_table_get_dynamic_section(phdr, elf_hdr->e_phnum, linker_base,
4146 const char *interp = phdr_table_get_interpreter_name(somain->phdr, somain->phnum,
4258 si->phdr = reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR));
4263 * the first entry is the PHDR because this will not be true
4267 si->size = phdr_table_get_load_size(si->phdr, si->phnum);
4270 if (si->phdr[i].p_type == PT_PHDR) {
4271 si->load_bias = reinterpret_cast<ElfW(Addr)>(si->phdr) - si->phdr[i].p_vaddr;
4272 si->base = reinterpret_cast<ElfW(Addr)>(si->phdr) - si->phdr[i].p_offset;
4405 const ElfW(Phdr)* phdr_table =
4406 reinterpret_cast<const ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(elf) + offset);
4407 const ElfW(Phdr)* phdr_end = phdr_table + elf->e_phnum;
4409 for (const ElfW(Phdr)* phdr = phdr_table; phdr < phdr_end; phdr++) {
4410 if (phdr->p_type == PT_LOAD) {
4411 return reinterpret_cast<ElfW(Addr)>(elf) + phdr->p_offset - phdr->p_vaddr;
4436 ElfW(Phdr)* phdr = reinterpret_cast<ElfW(Phdr)*>(linker_addr + elf_hdr->e_phoff);
4454 linker_so.size = phdr_table_get_load_size(phdr, elf_hdr->e_phnum);
4457 linker_so.phdr = phdr;