blob: 57fb4dcff4349546109fbff0953e2b6f3f90a3aa [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>
Valdis Kletnieks0f749142019-09-25 16:45:59 -07006#include <linux/elfcore.h>
Daisuke HATAYAMA1fcccba2010-03-05 13:44:07 -08007
8Elf_Half __weak elf_core_extra_phdrs(void)
9{
10 return 0;
11}
12
Al Viro506f21c2013-10-05 17:22:57 -040013int __weak elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset)
Daisuke HATAYAMA1fcccba2010-03-05 13:44:07 -080014{
15 return 1;
16}
17
Al Viro506f21c2013-10-05 17:22:57 -040018int __weak elf_core_write_extra_data(struct coredump_params *cprm)
Daisuke HATAYAMA1fcccba2010-03-05 13:44:07 -080019{
20 return 1;
21}
Daisuke HATAYAMA8d9032b2010-03-05 13:44:10 -080022
23size_t __weak elf_core_extra_data_size(void)
24{
25 return 0;
26}