diff options
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 79b05a1a4365..cc72bb43061d 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -1582,6 +1582,10 @@ static int elf_core_dump(long signr, struct pt_regs *regs, struct file *file) | |||
1582 | 1582 | ||
1583 | sz += thread_status_size; | 1583 | sz += thread_status_size; |
1584 | 1584 | ||
1585 | #ifdef ELF_CORE_WRITE_EXTRA_NOTES | ||
1586 | sz += ELF_CORE_EXTRA_NOTES_SIZE; | ||
1587 | #endif | ||
1588 | |||
1585 | fill_elf_note_phdr(&phdr, sz, offset); | 1589 | fill_elf_note_phdr(&phdr, sz, offset); |
1586 | offset += sz; | 1590 | offset += sz; |
1587 | DUMP_WRITE(&phdr, sizeof(phdr)); | 1591 | DUMP_WRITE(&phdr, sizeof(phdr)); |
@@ -1622,6 +1626,10 @@ static int elf_core_dump(long signr, struct pt_regs *regs, struct file *file) | |||
1622 | if (!writenote(notes + i, file, &foffset)) | 1626 | if (!writenote(notes + i, file, &foffset)) |
1623 | goto end_coredump; | 1627 | goto end_coredump; |
1624 | 1628 | ||
1629 | #ifdef ELF_CORE_WRITE_EXTRA_NOTES | ||
1630 | ELF_CORE_WRITE_EXTRA_NOTES; | ||
1631 | #endif | ||
1632 | |||
1625 | /* write out the thread status notes section */ | 1633 | /* write out the thread status notes section */ |
1626 | list_for_each(t, &thread_list) { | 1634 | list_for_each(t, &thread_list) { |
1627 | struct elf_thread_status *tmp = | 1635 | struct elf_thread_status *tmp = |