• Home
  • Raw
  • Download

Lines Matching refs:note

769 	} note;  in parse_elf_properties()  local
785 if (phdr->p_filesz > sizeof(note)) in parse_elf_properties()
789 n = kernel_read(f, &note, phdr->p_filesz, &pos); in parse_elf_properties()
791 BUILD_BUG_ON(sizeof(note) < sizeof(note.nhdr) + NOTE_NAME_SZ); in parse_elf_properties()
792 if (n < 0 || n < sizeof(note.nhdr) + NOTE_NAME_SZ) in parse_elf_properties()
795 if (note.nhdr.n_type != NT_GNU_PROPERTY_TYPE_0 || in parse_elf_properties()
796 note.nhdr.n_namesz != NOTE_NAME_SZ || in parse_elf_properties()
797 strncmp(note.data + sizeof(note.nhdr), in parse_elf_properties()
798 GNU_PROPERTY_TYPE_0_NAME, n - sizeof(note.nhdr))) in parse_elf_properties()
801 off = round_up(sizeof(note.nhdr) + NOTE_NAME_SZ, in parse_elf_properties()
806 if (note.nhdr.n_descsz > n - off) in parse_elf_properties()
808 datasz = off + note.nhdr.n_descsz; in parse_elf_properties()
812 ret = parse_elf_property(note.data, &off, datasz, arch, in parse_elf_properties()
1498 static void fill_note(struct memelfnote *note, const char *name, int type, in fill_note() argument
1501 note->name = name; in fill_note()
1502 note->type = type; in fill_note()
1503 note->datasz = sz; in fill_note()
1504 note->data = data; in fill_note()
1588 static void fill_auxv_note(struct memelfnote *note, struct mm_struct *mm) in fill_auxv_note() argument
1595 fill_note(note, "CORE", NT_AUXV, i * sizeof(elf_addr_t), auxv); in fill_auxv_note()
1598 static void fill_siginfo_note(struct memelfnote *note, user_siginfo_t *csigdata, in fill_siginfo_note() argument
1602 fill_note(note, "CORE", NT_SIGINFO, sizeof(*csigdata), csigdata); in fill_siginfo_note()
1617 static int fill_files_note(struct memelfnote *note) in fill_files_note() argument
1695 fill_note(note, "CORE", NT_FILE, size, data); in fill_files_note()