Lines Matching defs:note

1868     case SHT_NOTE:	/* .note section.  */
2394 { STRING_COMMA_LEN (".note.GNU-stack"), 0, SHT_PROGBITS, 0 },
2395 { STRING_COMMA_LEN (".note"), -1, SHT_NOTE, 0 },
2697 if (! _bfd_elf_make_section_from_phdr (abfd, hdr, index, "note"))
3702 && CONST_STRNEQ (s->name, ".note"))
4080 /* For each loadable .note section, add a PT_NOTE segment. We don't
4082 nonloadable .note sections and loadable .note sections, we will
4083 generate two .note sections in the output file. FIXME: Using
4088 && CONST_STRNEQ (s->name, ".note"))
4635 a note section in a PT_NOTE segment. These take
5692 of program headers that we will need. Make a note
7546 elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
7551 if (note->descsz == sizeof (prstatus_t))
7557 memcpy (&prstat, note->descdata, sizeof (prstat));
7576 else if (note->descsz == sizeof (prstatus32_t))
7583 memcpy (&prstat, note->descdata, sizeof (prstat));
7605 note size (ie. data object type). */
7611 size, note->descpos + offset);
7619 Elf_Internal_Note *note)
7622 note->descsz, note->descpos);
7630 elfcore_grok_prfpreg (bfd *abfd, Elf_Internal_Note *note)
7632 return elfcore_make_note_pseudosection (abfd, ".reg2", note);
7635 /* Linux dumps the Intel SSE regs in a note named "LINUX" with a note
7636 type of 5 (NT_PRXFPREG). Just include the whole note's contents
7640 elfcore_grok_prxfpreg (bfd *abfd, Elf_Internal_Note *note)
7642 return elfcore_make_note_pseudosection (abfd, ".reg-xfp", note);
7648 elfcore_grok_thrmisc (bfd *abfd, Elf_Internal_Note *note)
7650 return elfcore_make_note_pseudosection (abfd, ".tname", note);
7697 elfcore_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
7699 if (note->descsz == sizeof (elfcore_psinfo_t))
7703 memcpy (&psinfo, note->descdata, sizeof (psinfo));
7714 else if (note->descsz == sizeof (elfcore_psinfo32_t))
7719 memcpy (&psinfo, note->descdata, sizeof (psinfo));
7734 note size (ie. data object type). */
7756 elfcore_grok_pstatus (bfd *abfd, Elf_Internal_Note *note)
7758 if (note->descsz == sizeof (pstatus_t)
7760 || note->descsz == sizeof (pxstatus_t)
7766 memcpy (&pstat, note->descdata, sizeof (pstat));
7771 else if (note->descsz == sizeof (pstatus32_t))
7776 memcpy (&pstat, note->descdata, sizeof (pstat));
7783 NT_LWPSTATUS note, presumably. */
7791 elfcore_grok_lwpstatus (bfd *abfd, Elf_Internal_Note *note)
7799 if (note->descsz != sizeof (lwpstat)
7801 && note->descsz != sizeof (lwpxstatus_t)
7806 memcpy (&lwpstat, note->descdata, sizeof (lwpstat));
7826 sect->filepos = note->descpos
7832 sect->filepos = note->descpos + offsetof (lwpstatus_t, pr_reg);
7855 sect->filepos = note->descpos
7861 sect->filepos = note->descpos + offsetof (lwpstatus_t, pr_fpreg);
7872 elfcore_grok_win32pstatus (bfd *abfd, Elf_Internal_Note *note)
7880 if (note->descsz < sizeof (pstatus))
7883 memcpy (&pstatus, note->descdata, sizeof (pstatus));
7909 sect->filepos = (note->descpos
7936 sect->size = note->descsz;
7937 sect->filepos = note->descpos;
7950 elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note)
7954 switch (note->type)
7961 if ((*bed->elf_backend_grok_prstatus) (abfd, note))
7964 return elfcore_grok_prstatus (abfd, note);
7971 return elfcore_grok_pstatus (abfd, note);
7976 return elfcore_grok_lwpstatus (abfd, note);
7980 return elfcore_grok_prfpreg (abfd, note);
7984 return elfcore_grok_win32pstatus (abfd, note);
7988 if (note->namesz == 6
7989 && strcmp (note->namedata, "LINUX") == 0)
7990 return elfcore_grok_prxfpreg (abfd, note);
7997 if ((*bed->elf_backend_grok_psinfo) (abfd, note))
8000 return elfcore_grok_psinfo (abfd, note);
8012 sect->size = note->descsz;
8013 sect->filepos = note->descpos;
8021 return elfcore_grok_thrmisc (abfd, note);
8028 elfcore_netbsd_get_lwpid (Elf_Internal_Note *note, int *lwpidp)
8032 cp = strchr (note->namedata, '@');
8042 elfcore_grok_netbsd_procinfo (bfd *abfd, Elf_Internal_Note *note)
8046 = bfd_h_get_32 (abfd, (bfd_byte *) note->descdata + 0x08);
8050 = bfd_h_get_32 (abfd, (bfd_byte *) note->descdata + 0x50);
8054 = _bfd_elfcore_strndup (abfd, note->descdata + 0x7c, 31);
8056 return elfcore_make_note_pseudosection (abfd, ".note.netbsdcore.procinfo",
8057 note);
8061 elfcore_grok_netbsd_note (bfd *abfd, Elf_Internal_Note *note)
8065 if (elfcore_netbsd_get_lwpid (note, &lwp))
8068 if (note->type == NT_NETBSDCORE_PROCINFO)
8071 find this note before any of the others, which is fine,
8072 since the kernel writes this note out first when it
8075 return elfcore_grok_netbsd_procinfo (abfd, note);
8079 defined for NetBSD core files. If the note type is less
8080 than the start of the machine-dependent note types, we don't
8083 if (note->type < NT_NETBSDCORE_FIRSTMACH)
8094 switch (note->type)
8097 return elfcore_make_note_pseudosection (abfd, ".reg", note);
8100 return elfcore_make_note_pseudosection (abfd, ".reg2", note);
8110 switch (note->type)
8113 return elfcore_make_note_pseudosection (abfd, ".reg", note);
8116 return elfcore_make_note_pseudosection (abfd, ".reg2", note);
8126 elfcore_grok_nto_status (bfd *abfd, Elf_Internal_Note *note, long *tid)
8128 void *ddata = note->descdata;
8169 sect->size = note->descsz;
8170 sect->filepos = note->descpos;
8178 Elf_Internal_Note *note,
8198 sect->size = note->descsz;
8199 sect->filepos = note->descpos;
8215 elfcore_grok_nto_note (bfd *abfd, Elf_Internal_Note *note)
8222 switch (note->type)
8225 return elfcore_make_note_pseudosection (abfd, ".qnx_core_info", note);
8227 return elfcore_grok_nto_status (abfd, note, &tid);
8229 return elfcore_grok_nto_regs (abfd, note, tid, ".reg");
8231 return elfcore_grok_nto_regs (abfd, note, tid, ".reg2");
8240 buffer to hold note, and current size of buffer
8241 name of note
8242 type of note
8243 data for note
8244 size of data for note
8246 Writes note to end of buffer. ELF64 notes are written exactly as