Searched refs:note_header (Results 1 – 3 of 3) sorted by relevance
42 const Nhdr* note_header = reinterpret_cast<const Nhdr*>(segment.data()); in ElfSegmentBuildIDNoteAsString() local43 while (note_header < section_end) { in ElfSegmentBuildIDNoteAsString()44 if (note_header->n_type == NT_GNU_BUILD_ID) in ElfSegmentBuildIDNoteAsString()46 note_header = reinterpret_cast<const Nhdr*>( in ElfSegmentBuildIDNoteAsString()47 reinterpret_cast<const char*>(note_header) + sizeof(Nhdr) + in ElfSegmentBuildIDNoteAsString()48 bits::Align(note_header->n_namesz, 4) + in ElfSegmentBuildIDNoteAsString()49 bits::Align(note_header->n_descsz, 4)); in ElfSegmentBuildIDNoteAsString()52 if (note_header >= section_end || note_header->n_descsz != kSHA1Length) in ElfSegmentBuildIDNoteAsString()55 const uint8_t* guid = reinterpret_cast<const uint8_t*>(note_header) + in ElfSegmentBuildIDNoteAsString()56 sizeof(Nhdr) + bits::Align(note_header->n_namesz, 4); in ElfSegmentBuildIDNoteAsString()[all …]
71 const Nhdr* note_header = reinterpret_cast<const Nhdr*>(section); in ElfClassBuildIDNoteIdentifier() local72 while (reinterpret_cast<const void *>(note_header) < section_end) { in ElfClassBuildIDNoteIdentifier()73 if (note_header->n_type == NT_GNU_BUILD_ID) in ElfClassBuildIDNoteIdentifier()75 note_header = reinterpret_cast<const Nhdr*>( in ElfClassBuildIDNoteIdentifier()76 reinterpret_cast<const char*>(note_header) + sizeof(Nhdr) + in ElfClassBuildIDNoteIdentifier()77 NOTE_PADDING(note_header->n_namesz) + in ElfClassBuildIDNoteIdentifier()78 NOTE_PADDING(note_header->n_descsz)); in ElfClassBuildIDNoteIdentifier()80 if (reinterpret_cast<const void *>(note_header) >= section_end || in ElfClassBuildIDNoteIdentifier()81 note_header->n_descsz == 0) { in ElfClassBuildIDNoteIdentifier()85 const uint8_t* build_id = reinterpret_cast<const uint8_t*>(note_header) + in ElfClassBuildIDNoteIdentifier()[all …]
248 Elf32_Nhdr note_header; in AddNote() local249 memset(¬e_header, 0, sizeof(note_header)); in AddNote()250 note_header.n_namesz = name.length() + 1; in AddNote()251 note_header.n_descsz = desc_size; in AddNote()252 note_header.n_type = type; in AddNote()254 Append(reinterpret_cast<const uint8_t*>(¬e_header), in AddNote()255 sizeof(note_header)); in AddNote()