Lines Matching refs:phdr
168 si->phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<char*>(ehdr_vdso) + ehdr_vdso->e_phoff); in add_vdso()
171 si->size = phdr_table_get_load_size(si->phdr, si->phnum); in add_vdso()
191 phdr_table_get_dynamic_section(info.phdr, info.phnum, info.load_bias, &map.l_ld, nullptr); in init_link_map_head()
199 const ElfW(Phdr)* phdr;
235 result.phdr = reinterpret_cast<const ElfW(Phdr)*>(getauxval(AT_PHDR)); in get_executable_info()
297 result.phdr = elf_reader.loaded_phdr(); in load_executable()
369 si->phdr = exe_info.phdr; in linker_main()
371 get_elf_base_from_phdr(si->phdr, si->phnum, &si->base, &si->load_bias); in linker_main()
372 si->size = phdr_table_get_load_size(si->phdr, si->phnum); in linker_main()
387 const char *interp = phdr_table_get_interpreter_name(somain->phdr, somain->phnum, in linker_main()
403 (phdr_table_protect_segments(somain->phdr, somain->phnum, somain->load_bias, in linker_main()
410 __libc_init_mte(somain->phdr, somain->phnum, somain->load_bias); in linker_main()
549 for (const ElfW(Phdr)* phdr = phdr_table; phdr < phdr_end; phdr++) { in get_elf_exec_load_bias()
550 if (phdr->p_type == PT_LOAD) { in get_elf_exec_load_bias()
551 return reinterpret_cast<ElfW(Addr)>(elf) + phdr->p_offset - phdr->p_vaddr; in get_elf_exec_load_bias()
581 auto phdr = &si->phdr[i]; in set_bss_vma_name() local
583 if (phdr->p_type != PT_LOAD) { in set_bss_vma_name()
587 ElfW(Addr) seg_start = phdr->p_vaddr + si->load_bias; in set_bss_vma_name()
588 ElfW(Addr) seg_page_end = PAGE_END(seg_start + phdr->p_memsz); in set_bss_vma_name()
589 ElfW(Addr) seg_file_end = PAGE_END(seg_start + phdr->p_filesz); in set_bss_vma_name()
682 ElfW(Phdr)* phdr = reinterpret_cast<ElfW(Phdr)*>(linker_addr + elf_hdr->e_phoff); in __linker_init()
691 tmp_linker_so.size = phdr_table_get_load_size(phdr, elf_hdr->e_phnum); in __linker_init()
694 tmp_linker_so.phdr = phdr; in __linker_init()