aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf-bfd.h2
-rw-r--r--bfd/elf.c8
3 files changed, 15 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 96b9cdf..c8fcb3a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
+
+ * bfd-elf.h (elfcore_write_file_note): New function.
+ * elf.c (elfcore_write_file_note): New function.
+
2021-01-26 Alan Modra <amodra@gmail.com>
* elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 15206b4..994f15e 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2801,6 +2801,8 @@ extern char *elfcore_write_lwpstatus
(bfd *, char *, int *, long, int, const void *);
extern char *elfcore_write_register_note
(bfd *, char *, int *, const char *, const void *, int);
+extern char *elfcore_write_file_note
+ (bfd *, char *, int *, const void*, int);
/* Internal structure which holds information to be included in the
PRPSINFO section of Linux core files.
diff --git a/bfd/elf.c b/bfd/elf.c
index 84a5d94..087f05e 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -12038,6 +12038,14 @@ elfcore_write_register_note (bfd *abfd,
return NULL;
}
+char *
+elfcore_write_file_note (bfd *obfd, char *note_data, int *note_size,
+ const void *buf, int bufsiz)
+{
+ return elfcore_write_note (obfd, note_data, note_size,
+ "CORE", NT_FILE, buf, bufsiz);
+}
+
static bfd_boolean
elf_parse_notes (bfd *abfd, char *buf, size_t size, file_ptr offset,
size_t align)