blob: fc482c8e0bd880711ef61d654dbd0bfaa6dc784c [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Daisuke HATAYAMA1fcccba2010-03-05 13:44:07 -08002#include <linux/elf.h>
3#include <linux/fs.h>
4#include <linux/mm.h>
Al Viro506f21c2013-10-05 17:22:57 -04005#include <linux/binfmts.h>
Daisuke HATAYAMA1fcccba2010-03-05 13:44:07 -08006
7Elf_Half __weak elf_core_extra_phdrs(void)
8{
9 return 0;
10}
11
Al Viro506f21c2013-10-05 17:22:57 -040012int __weak elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset)
Daisuke HATAYAMA1fcccba2010-03-05 13:44:07 -080013{
14 return 1;
15}
16
Al Viro506f21c2013-10-05 17:22:57 -040017int __weak elf_core_write_extra_data(struct coredump_params *cprm)
Daisuke HATAYAMA1fcccba2010-03-05 13:44:07 -080018{
19 return 1;
20}
Daisuke HATAYAMA8d9032b2010-03-05 13:44:10 -080021
22size_t __weak elf_core_extra_data_size(void)
23{
24 return 0;
25}