Lines Matching refs:phdr
40 : GnuPropertySection(si->phdr, si->phnum, si->load_bias, si->get_realpath()) {} in GnuPropertySection()
42 GnuPropertySection::GnuPropertySection(const ElfW(Phdr)* phdr, size_t phdr_count, in GnuPropertySection() argument
45 auto note_gnu_property = FindSegment(phdr, phdr_count, load_bias, name); in GnuPropertySection()
53 const ElfW(NhdrGNUProperty)* GnuPropertySection::FindSegment(const ElfW(Phdr)* phdr, in ElfW()
59 if (phdr != nullptr) { in ElfW()
61 if (phdr[i].p_type != PT_GNU_PROPERTY) { in ElfW()
68 if (phdr[i].p_memsz < sizeof(ElfW(NhdrGNUProperty))) { in ElfW()
72 name, static_cast<size_t>(phdr[i].p_memsz), sizeof(ElfW(NhdrGNUProperty))); in ElfW()
78 auto note_nhdr = reinterpret_cast<ElfW(NhdrGNUProperty)*>(load_bias + phdr[i].p_vaddr); in ElfW()
81 if ((phdr[i].p_memsz - sizeof(ElfW(NhdrGNUProperty))) < note_nhdr->nhdr.n_descsz) { in ElfW()
84 name, static_cast<size_t>(phdr[i].p_memsz), in ElfW()