Lines Matching refs:note_header
65 const Nhdr* note_header = reinterpret_cast<const Nhdr*>(section); in ElfClassBuildIDNoteIdentifier() local
66 while (reinterpret_cast<const void *>(note_header) < section_end) { in ElfClassBuildIDNoteIdentifier()
67 if (note_header->n_type == NT_GNU_BUILD_ID) in ElfClassBuildIDNoteIdentifier()
69 note_header = reinterpret_cast<const Nhdr*>( in ElfClassBuildIDNoteIdentifier()
70 reinterpret_cast<const char*>(note_header) + sizeof(Nhdr) + in ElfClassBuildIDNoteIdentifier()
71 NOTE_PADDING(note_header->n_namesz) + in ElfClassBuildIDNoteIdentifier()
72 NOTE_PADDING(note_header->n_descsz)); in ElfClassBuildIDNoteIdentifier()
74 if (reinterpret_cast<const void *>(note_header) >= section_end || in ElfClassBuildIDNoteIdentifier()
75 note_header->n_descsz == 0) { in ElfClassBuildIDNoteIdentifier()
79 const char* build_id = reinterpret_cast<const char*>(note_header) + in ElfClassBuildIDNoteIdentifier()
80 sizeof(Nhdr) + NOTE_PADDING(note_header->n_namesz); in ElfClassBuildIDNoteIdentifier()
85 std::min(kMDGUIDSize, (size_t)note_header->n_descsz)); in ElfClassBuildIDNoteIdentifier()