1 // SPDX-License-Identifier: GPL-2.0 2 #include <linux/elf.h> 3 #include <linux/fs.h> 4 #include <linux/mm.h> 5 #include <linux/binfmts.h> 6 elf_core_extra_phdrs(void)7Elf_Half __weak elf_core_extra_phdrs(void) 8 { 9 return 0; 10 } 11 elf_core_write_extra_phdrs(struct coredump_params * cprm,loff_t offset)12int __weak elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) 13 { 14 return 1; 15 } 16 elf_core_write_extra_data(struct coredump_params * cprm)17int __weak elf_core_write_extra_data(struct coredump_params *cprm) 18 { 19 return 1; 20 } 21 elf_core_extra_data_size(void)22size_t __weak elf_core_extra_data_size(void) 23 { 24 return 0; 25 } 26