Lines Matching refs:note
86 static boolean_t __elfN(bsd_trans_osrel)(const Elf_Note *note,
1518 Elf_Note note; in __elfN() local
1520 note.n_namesz = strlen(name) + 1; in __elfN()
1521 note.n_descsz = descsz; in __elfN()
1522 note.n_type = type; in __elfN()
1523 dst = target_reserve(target, sizeof(note), &error); in __elfN()
1525 bcopy(¬e, dst, sizeof note); in __elfN()
1526 dst = target_reserve(target, note.n_namesz, &error); in __elfN()
1528 bcopy(name, dst, note.n_namesz); in __elfN()
1530 dst = target_reserve(target, note.n_descsz, &error); in __elfN()
1532 bcopy(desc, dst, note.n_descsz); in __elfN()
1700 note_overflow(const Elf_Note *note, size_t maxsize) in note_overflow() argument
1702 if (sizeof(*note) > maxsize) in note_overflow()
1704 if (note->n_namesz > maxsize - sizeof(*note)) in note_overflow()
1726 const Elf_Note *note, *note0, *note_end; in check_PT_NOTE() local
1744 note = (const Elf_Note *)(imgp->image_header + noteloc); in check_PT_NOTE()
1746 note0 = note; in check_PT_NOTE()
1768 note = note0 = (const Elf_Note *)(data); in check_PT_NOTE()
1771 note = note0 = (const Elf_Note *)(page + firstloc); in check_PT_NOTE()
1777 for (n = 0; n < 100 && note >= note0 && note < note_end; n++) { in check_PT_NOTE()
1778 if (!aligned(note, Elf32_Addr)) in check_PT_NOTE()
1780 if (note_overflow(note, (const char *)note_end - in check_PT_NOTE()
1781 (const char *)note)) { in check_PT_NOTE()
1784 note_name = (const char *)(note + 1); in check_PT_NOTE()
1786 if (note->n_namesz == checknote->hdr.n_namesz in check_PT_NOTE()
1787 && note->n_descsz == checknote->hdr.n_descsz in check_PT_NOTE()
1788 && note->n_type == checknote->hdr.n_type in check_PT_NOTE()
1794 checknote->trans_osrel(note, osrel); in check_PT_NOTE()
1798 note = (const Elf_Note *)((const char *)(note + 1) + in check_PT_NOTE()
1799 roundup2(note->n_namesz, sizeof(Elf32_Addr)) + in check_PT_NOTE()
1800 roundup2(note->n_descsz, sizeof(Elf32_Addr))); in check_PT_NOTE()
1866 __elfN(bsd_trans_osrel)(const Elf_Note *note, int32_t *osrel) in __elfN()
1870 p = (uintptr_t)(note + 1); in __elfN()
1871 p += roundup2(note->n_namesz, sizeof(Elf32_Addr)); in __elfN()