Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Daisuke HATAYAMA | 1fcccba | 2010-03-05 13:44:07 -0800 | [diff] [blame] | 2 | #include <linux/elf.h> |
| 3 | #include <linux/fs.h> |
| 4 | #include <linux/mm.h> |
Al Viro | 506f21c | 2013-10-05 17:22:57 -0400 | [diff] [blame] | 5 | #include <linux/binfmts.h> |
Daisuke HATAYAMA | 1fcccba | 2010-03-05 13:44:07 -0800 | [diff] [blame] | 6 | |
| 7 | Elf_Half __weak elf_core_extra_phdrs(void) |
| 8 | { |
| 9 | return 0; |
| 10 | } |
| 11 | |
Al Viro | 506f21c | 2013-10-05 17:22:57 -0400 | [diff] [blame] | 12 | int __weak elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) |
Daisuke HATAYAMA | 1fcccba | 2010-03-05 13:44:07 -0800 | [diff] [blame] | 13 | { |
| 14 | return 1; |
| 15 | } |
| 16 | |
Al Viro | 506f21c | 2013-10-05 17:22:57 -0400 | [diff] [blame] | 17 | int __weak elf_core_write_extra_data(struct coredump_params *cprm) |
Daisuke HATAYAMA | 1fcccba | 2010-03-05 13:44:07 -0800 | [diff] [blame] | 18 | { |
| 19 | return 1; |
| 20 | } |
Daisuke HATAYAMA | 8d9032b | 2010-03-05 13:44:10 -0800 | [diff] [blame] | 21 | |
| 22 | size_t __weak elf_core_extra_data_size(void) |
| 23 | { |
| 24 | return 0; |
| 25 | } |