Home
last modified time | relevance | path

Searched refs:note_nhdr (Results 1 – 2 of 2) sorted by relevance

/bionic/linker/
Dlinker_note_gnu_property.cpp78 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()
[all …]
Dlinker_note_gnu_property.h89 bool SanityCheck(const ElfW(NhdrGNUProperty)* note_nhdr, const char* name) const;
90 bool Parse(const ElfW(NhdrGNUProperty)* note_nhdr, const char* name);