aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-01 13:16:46 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-01 13:16:46 -0700
commitb5c2367c3ac5f696221d9c24f470498abdb83257 (patch)
treef9355ff7dc4bb40ea01795cdfab9e9eb2a3afa54 /bfd/elf-bfd.h
parenta171378aa472fab0407dc1f99e8e7782286719ed (diff)
downloadfsf-binutils-gdb-b5c2367c3ac5f696221d9c24f470498abdb83257.zip
fsf-binutils-gdb-b5c2367c3ac5f696221d9c24f470498abdb83257.tar.gz
fsf-binutils-gdb-b5c2367c3ac5f696221d9c24f470498abdb83257.tar.bz2
Use pseudosections for NT_FREEBSD_X86_SEGBASES core dump notes.
This includes adding pseudosections when reading a core dump as well as support for writing out a core dump note from a pseudosection. bfd/ChangeLog: * elf-bfd.h (elfcore_write_x86_segbases): New. * elf.c (elfcore_grok_freebsd_note): Add pseudosections for NT_FREEBSD_X86_SEGBASES register notes. (elfcore_write_x86_segbases): New. (elfcore_write_register_note): Write NT_FREEBSD_X86_SEGBASES register notes.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 5c3985f..c7c0a79 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2786,6 +2786,8 @@ extern char *elfcore_write_prxfpreg
(bfd *, char *, int *, const void *, int);
extern char *elfcore_write_xstatereg
(bfd *, char *, int *, const void *, int);
+extern char *elfcore_write_x86_segbases
+ (bfd *, char *, int *, const void *, int);
extern char *elfcore_write_ppc_vmx
(bfd *, char *, int *, const void *, int);
extern char *elfcore_write_ppc_vsx