Searched refs:note_header (Results 1 – 2 of 2) sorted by relevance
65 const Nhdr* note_header = reinterpret_cast<const Nhdr*>(section); in ElfClassBuildIDNoteIdentifier() local66 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()[all …]
246 Elf32_Nhdr note_header; in AddNote() local247 memset(¬e_header, 0, sizeof(note_header)); in AddNote()248 note_header.n_namesz = name.length() + 1; in AddNote()249 note_header.n_descsz = desc_size; in AddNote()250 note_header.n_type = type; in AddNote()252 Append(reinterpret_cast<const uint8_t*>(¬e_header), in AddNote()253 sizeof(note_header)); in AddNote()