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) { in WriteBinaryIdForNote()
133 const char *NoteName = (const char *)Note + sizeof(ElfW(Nhdr)); in WriteBinaryIdForNote()
134 if (Note->n_type == NT_GNU_BUILD_ID && Note->n_namesz == 4 && in WriteBinaryIdForNote()
136 uint64_t BinaryIdLen = Note->n_descsz; in WriteBinaryIdForNote()
138 (const uint8_t *)(NoteName + RoundUp(Note->n_namesz, 4)); in WriteBinaryIdForNote()
156 static int WriteBinaryIds(ProfDataWriter *Writer, const ElfW(Nhdr) * Note, in WriteBinaryIds() argument
159 while (Note < NotesEnd) { in WriteBinaryIds()
160 int OneBinaryIdSize = WriteBinaryIdForNote(Writer, Note); in WriteBinaryIds()
165 /* Calculate the offset of the next note in notes section. */ in WriteBinaryIds()
166 size_t NoteOffset = sizeof(ElfW(Nhdr)) + RoundUp(Note->n_namesz, 4) + in WriteBinaryIds()
167 RoundUp(Note->n_descsz, 4); in WriteBinaryIds()
168 Note = (const ElfW(Nhdr) *)((const char *)(Note) + NoteOffset); in WriteBinaryIds()
194 const ElfW(Nhdr) * Note; in __llvm_write_binary_ids()
202 Note = (const ElfW(Nhdr) *)((uintptr_t)ElfHeader + in __llvm_write_binary_ids()
204 NotesEnd = (const ElfW(Nhdr) *)((const char *)(Note) + in __llvm_write_binary_ids()
211 Note = in __llvm_write_binary_ids()
214 (const ElfW(Nhdr) *)((const char *)(Note) + ProgramHeader[I].p_memsz); in __llvm_write_binary_ids()
217 int BinaryIdsSize = WriteBinaryIds(Writer, Note, NotesEnd); in __llvm_write_binary_ids()