+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].
(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.
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)
+2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
+
+ * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
+ elfcore_write_file_note.
+
2021-01-26 Shahab Vahedi <shahab@synopsys.com>
* arc-tdep.c (arc_add_reggroups): New function.
obstack_grow (&data_obstack, obstack_base (&filename_obstack),
size);
- note_data.reset (elfcore_write_note
- (obfd, note_data.release (),
- note_size, "CORE", NT_FILE,
- obstack_base (&data_obstack),
- obstack_object_size (&data_obstack)));
+ note_data.reset (elfcore_write_file_note (obfd, note_data.release (), note_size,
+ obstack_base (&data_obstack),
+ obstack_object_size (&data_obstack)));
}
}