Lines Matching refs:note
772 } note;
788 if (phdr->p_filesz > sizeof(note))
792 n = kernel_read(f, ¬e, phdr->p_filesz, &pos);
794 BUILD_BUG_ON(sizeof(note) < sizeof(note.nhdr) + NOTE_NAME_SZ);
795 if (n < 0 || n < sizeof(note.nhdr) + NOTE_NAME_SZ)
798 if (note.nhdr.n_type != NT_GNU_PROPERTY_TYPE_0 ||
799 note.nhdr.n_namesz != NOTE_NAME_SZ ||
800 strncmp(note.data + sizeof(note.nhdr),
801 GNU_PROPERTY_TYPE_0_NAME, n - sizeof(note.nhdr)))
804 off = round_up(sizeof(note.nhdr) + NOTE_NAME_SZ,
809 if (note.nhdr.n_descsz > n - off)
811 datasz = off + note.nhdr.n_descsz;
815 ret = parse_elf_property(note.data, &off, datasz, arch,
1458 /* An ELF note in memory */
1523 static void fill_note(struct memelfnote *note, const char *name, int type,
1526 note->name = name;
1527 note->type = type;
1528 note->datasz = sz;
1529 note->data = data;
1615 static void fill_auxv_note(struct memelfnote *note, struct mm_struct *mm)
1622 fill_note(note, "CORE", NT_AUXV, i * sizeof(elf_addr_t), auxv);
1625 static void fill_siginfo_note(struct memelfnote *note, user_siginfo_t *csigdata,
1629 fill_note(note, "CORE", NT_SIGINFO, sizeof(*csigdata), csigdata);
1634 * Format of NT_FILE note:
1644 static int fill_files_note(struct memelfnote *note, struct coredump_params *cprm)
1722 fill_note(note, "CORE", NT_FILE, size, data);
1775 * goes into the pr_reg field inside the note contents, rather
1776 * than being the whole note contents. We fill the regset in here.
1790 * Each other regset might generate a note too. For each regset
1951 * process-wide notes are interleaved after the first thread-specific note.