Lines Matching refs:note_nhdr
78 auto note_nhdr = reinterpret_cast<ElfW(NhdrGNUProperty)*>(load_bias + phdr[i].p_vaddr); in ElfW() local
81 if ((phdr[i].p_memsz - sizeof(ElfW(NhdrGNUProperty))) < note_nhdr->nhdr.n_descsz) { in ElfW()
85 static_cast<size_t>(note_nhdr->nhdr.n_descsz)); in ElfW()
89 return note_nhdr; in ElfW()
97 bool GnuPropertySection::SanityCheck(const ElfW(NhdrGNUProperty)* note_nhdr, in SanityCheck() argument
100 if (note_nhdr->nhdr.n_type != NT_GNU_PROPERTY_TYPE_0) { in SanityCheck()
102 NT_GNU_PROPERTY_TYPE_0, note_nhdr->nhdr.n_type); in SanityCheck()
106 if (note_nhdr->nhdr.n_namesz != 4) { in SanityCheck()
108 note_nhdr->nhdr.n_namesz); in SanityCheck()
112 if (strncmp(note_nhdr->n_name, "GNU", 4) != 0) { in SanityCheck()
114 note_nhdr->n_name); in SanityCheck()
121 bool GnuPropertySection::Parse(const ElfW(NhdrGNUProperty)* note_nhdr, const char* name) { in Parse() argument
124 while (offset < note_nhdr->nhdr.n_descsz) { 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()
141 if ((note_nhdr->nhdr.n_descsz - offset) < property_size) { in Parse()
145 name, property_size, note_nhdr->nhdr.n_descsz - offset); in Parse()