diff options
author | John Baldwin <jhb@FreeBSD.org> | 2018-01-03 12:06:26 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2018-01-03 12:06:53 -0800 |
commit | ddb2bbcf0624ef5f75c0a007c6b192c09b6fa70b (patch) | |
tree | b8e488da384a0dc5fccbb48fbe9196d7feb166bc /bfd/elf.c | |
parent | f13974bda3d53e47b7fe5a358e963073184ba17e (diff) | |
download | gdb-ddb2bbcf0624ef5f75c0a007c6b192c09b6fa70b.zip gdb-ddb2bbcf0624ef5f75c0a007c6b192c09b6fa70b.tar.gz gdb-ddb2bbcf0624ef5f75c0a007c6b192c09b6fa70b.tar.bz2 |
Create pseudo sections for FreeBSD NT_PROCSTAT_(PROC|FILES|VMMAP) notes.
bfd/ChangeLog:
* elf.c (elfcore_grok_freebsd_note): Handle
NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
NT_FREEBSD_PROCSTAT_VMMAP.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -10014,6 +10014,18 @@ elfcore_grok_freebsd_note (bfd *abfd, Elf_Internal_Note *note) else return TRUE; + case NT_FREEBSD_PROCSTAT_PROC: + return elfcore_make_note_pseudosection (abfd, ".note.freebsdcore.proc", + note); + + case NT_FREEBSD_PROCSTAT_FILES: + return elfcore_make_note_pseudosection (abfd, ".note.freebsdcore.files", + note); + + case NT_FREEBSD_PROCSTAT_VMMAP: + return elfcore_make_note_pseudosection (abfd, ".note.freebsdcore.vmmap", + note); + case NT_FREEBSD_PROCSTAT_AUXV: { asection *sect = bfd_make_section_anyway_with_flags (abfd, ".auxv", |