Lines Matching defs:note
51 // Standard ELF note layout (Elf{32,64}_Nhdr in <elf.h>).
69 const struct build_id_note* const note = &__build_id_note_start;
70 if (note->type != NT_GNU_BUILD_ID ||
71 note->namesz != sizeof(NOTE_NAME) ||
72 memcmp(note->name, NOTE_NAME, sizeof(NOTE_NAME)) != 0 ||
73 ¬e->id[note->descsz] != __build_id_note_end) {
74 panic("ELF build ID note has bad format!\n");
76 if (note->descsz * 2 >= sizeof(elf_build_id_string)) {
78 note->descsz, (uint32_t)(sizeof(elf_build_id_string) / 2));
80 for (uint32_t i = 0; i < note->descsz; ++i) {
81 snprintf(&elf_build_id_string[i * 2], 3, "%02x", note->id[i]);