Lines Matching refs:ElfW
42 GnuPropertySection::GnuPropertySection(const ElfW(Phdr)* phdr, size_t phdr_count, in GnuPropertySection()
43 const ElfW(Addr) load_bias, const char* name) { in GnuPropertySection()
53 const ElfW(NhdrGNUProperty)* GnuPropertySection::FindSegment(const ElfW(Phdr)* phdr, in ElfW() function
55 const ElfW(Addr) load_bias, 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()
97 bool GnuPropertySection::SanityCheck(const ElfW(NhdrGNUProperty)* note_nhdr, in SanityCheck()
121 bool GnuPropertySection::Parse(const ElfW(NhdrGNUProperty)* note_nhdr, const char* name) { in Parse()
123 ElfW(Word) offset = 0; in Parse()
129 if ((note_nhdr->nhdr.n_descsz - offset) < sizeof(ElfW(Prop))) { in Parse()
138 const ElfW(Prop)* property = reinterpret_cast<const ElfW(Prop)*>(¬e_nhdr->n_desc[offset]); in Parse() local
139 const ElfW(Word) property_size = in Parse() local
140 align_up(sizeof(ElfW(Prop)) + property->pr_datasz, sizeof(ElfW(Addr))); in Parse()
161 const ElfW(Word) flags = *reinterpret_cast<const ElfW(Word)*>(&property->pr_data[0]); in Parse() local