Lines Matching refs:note

769 	} note;
785 if (phdr->p_filesz > sizeof(note))
789 n = kernel_read(f, &note, phdr->p_filesz, &pos);
791 BUILD_BUG_ON(sizeof(note) < sizeof(note.nhdr) + NOTE_NAME_SZ);
792 if (n < 0 || n < sizeof(note.nhdr) + NOTE_NAME_SZ)
795 if (note.nhdr.n_type != NT_GNU_PROPERTY_TYPE_0 ||
796 note.nhdr.n_namesz != NOTE_NAME_SZ ||
797 strncmp(note.data + sizeof(note.nhdr),
798 GNU_PROPERTY_TYPE_0_NAME, n - sizeof(note.nhdr)))
801 off = round_up(sizeof(note.nhdr) + NOTE_NAME_SZ,
806 if (note.nhdr.n_descsz > n - off)
808 datasz = off + note.nhdr.n_descsz;
812 ret = parse_elf_property(note.data, &off, datasz, arch,
1457 /* An ELF note in memory */
1522 static void fill_note(struct memelfnote *note, const char *name, int type,
1525 note->name = name;
1526 note->type = type;
1527 note->datasz = sz;
1528 note->data = data;
1612 static void fill_auxv_note(struct memelfnote *note, struct mm_struct *mm)
1619 fill_note(note, "CORE", NT_AUXV, i * sizeof(elf_addr_t), auxv);
1622 static void fill_siginfo_note(struct memelfnote *note, user_siginfo_t *csigdata,
1626 fill_note(note, "CORE", NT_SIGINFO, sizeof(*csigdata), csigdata);
1631 * Format of NT_FILE note:
1641 static int fill_files_note(struct memelfnote *note, struct coredump_params *cprm)
1719 fill_note(note, "CORE", NT_FILE, size, data);
1773 * goes into the pr_reg field inside the note contents, rather
1774 * than being the whole note contents. We fill the reset in here.
1790 * Each other regset might generate a note too. For each regset
1925 * process-wide notes are interleaved after the first thread-specific note.