mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
switch elf_coredump_extra_notes_write() to dump_emit()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e6c1baa9b5
commit
cdc3d5627d
6 changed files with 30 additions and 38 deletions
|
@ -2037,7 +2037,7 @@ static int elf_core_dump(struct coredump_params *cprm)
|
|||
size_t size = 0;
|
||||
struct vm_area_struct *vma, *gate_vma;
|
||||
struct elfhdr *elf = NULL;
|
||||
loff_t offset = 0, dataoff, foffset;
|
||||
loff_t offset = 0, dataoff;
|
||||
struct elf_note_info info = { };
|
||||
struct elf_phdr *phdr4note = NULL;
|
||||
struct elf_shdr *shdr4extnum = NULL;
|
||||
|
@ -2160,12 +2160,11 @@ static int elf_core_dump(struct coredump_params *cprm)
|
|||
if (!write_note_info(&info, cprm))
|
||||
goto end_coredump;
|
||||
|
||||
foffset = cprm->written;
|
||||
if (elf_coredump_extra_notes_write(cprm->file, &foffset))
|
||||
if (elf_coredump_extra_notes_write(cprm))
|
||||
goto end_coredump;
|
||||
|
||||
/* Align to page */
|
||||
if (!dump_seek(cprm->file, dataoff - foffset))
|
||||
if (!dump_seek(cprm->file, dataoff - cprm->written))
|
||||
goto end_coredump;
|
||||
|
||||
cprm->written = size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue