Lines Matching full:note
119 * Look for the note that has the name "GNU\0" and type NT_GNU_BUILD_ID
122 * Each note in notes section starts with a struct which includes
127 * Note sections like .note.ABI-tag and .note.gnu.build-id are aligned
131 const ElfW(Nhdr) * Note) {
133 const char *NoteName = (const char *)Note + sizeof(ElfW(Nhdr));
134 if (Note->n_type == NT_GNU_BUILD_ID && Note->n_namesz == 4 &&
136 uint64_t BinaryIdLen = Note->n_descsz;
138 (const uint8_t *)(NoteName + RoundUp(Note->n_namesz, 4));
156 static int WriteBinaryIds(ProfDataWriter *Writer, const ElfW(Nhdr) * Note,
159 while (Note < NotesEnd) {
160 int OneBinaryIdSize = WriteBinaryIdForNote(Writer, Note);
165 /* Calculate the offset of the next note in notes section. */
166 size_t NoteOffset = sizeof(ElfW(Nhdr)) + RoundUp(Note->n_namesz, 4) +
167 RoundUp(Note->n_descsz, 4);
168 Note = (const ElfW(Nhdr) *)((const char *)(Note) + NoteOffset);
194 const ElfW(Nhdr) * Note;
202 Note = (const ElfW(Nhdr) *)((uintptr_t)ElfHeader +
204 NotesEnd = (const ElfW(Nhdr) *)((const char *)(Note) +
211 Note =
214 (const ElfW(Nhdr) *)((const char *)(Note) + ProgramHeader[I].p_memsz);
217 int BinaryIdsSize = WriteBinaryIds(Writer, Note, NotesEnd);