Lines Matching defs:note

367 check_note (bfd *abfd, asection *sect, const char *note,
372 /* Calculate the size of this note. */
381 /* Check whether SECT is big enough to comtain the complete note. */
385 /* Check the note name. */
386 if (bfd_h_get_32 (abfd, note) != (strlen (name) + 1)
387 || strcmp (note + 12, name) != 0)
391 if (bfd_h_get_32 (abfd, note + 4) != descsz)
394 /* Check the note type. */
395 if (bfd_h_get_32 (abfd, note + 8) != type)
409 char *note;
418 note = alloca (sectsize);
419 bfd_get_section_contents (abfd, sect, note, 0, sectsize);
421 /* .note.ABI-tag notes, used by GNU/Linux and FreeBSD. */
422 if (strcmp (name, ".note.ABI-tag") == 0)
425 if (check_note (abfd, sect, note, "GNU", 16, NT_GNU_ABI_TAG))
427 unsigned int abi_tag = bfd_h_get_32 (abfd, note + 16);
460 if (check_note (abfd, sect, note, "FreeBSD", 4, NT_FREEBSD_ABI_TAG))
470 /* .note.tag notes, used by FreeBSD. */
471 if (strcmp (name, ".note.tag") == 0)
474 if (check_note (abfd, sect, note, "FreeBSD", 4, NT_FREEBSD_TAG))
480 if (check_note (abfd, sect, note, "FreeBSD", 4, NT_FREEBSD_NOINIT_TAG))
490 /* .note.netbsd.ident notes, used by NetBSD. */
491 if (strcmp (name, ".note.netbsd.ident") == 0
492 && check_note (abfd, sect, note, "NetBSD", 4, NT_NETBSD_IDENT))
499 /* .note.openbsd.ident notes, used by OpenBSD. */
500 if (strcmp (name, ".note.openbsd.ident") == 0
501 && check_note (abfd, sect, note, "OpenBSD", 4, NT_OPENBSD_IDENT))
508 /* .note.netbsdcore.procinfo notes, used by NetBSD. */
509 if (strcmp (name, ".note.netbsdcore.procinfo") == 0)