Loading...
1#include <linux/elf.h>
2#include <linux/fs.h>
3#include <linux/mm.h>
4#include <linux/binfmts.h>
5
6Elf_Half __weak elf_core_extra_phdrs(void)
7{
8 return 0;
9}
10
11int __weak elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset)
12{
13 return 1;
14}
15
16int __weak elf_core_write_extra_data(struct coredump_params *cprm)
17{
18 return 1;
19}
20
21size_t __weak elf_core_extra_data_size(void)
22{
23 return 0;
24}
1#include <linux/elf.h>
2#include <linux/fs.h>
3#include <linux/mm.h>
4
5#include <asm/elf.h>
6
7
8Elf_Half __weak elf_core_extra_phdrs(void)
9{
10 return 0;
11}
12
13int __weak elf_core_write_extra_phdrs(struct file *file, loff_t offset, size_t *size,
14 unsigned long limit)
15{
16 return 1;
17}
18
19int __weak elf_core_write_extra_data(struct file *file, size_t *size,
20 unsigned long limit)
21{
22 return 1;
23}
24
25size_t __weak elf_core_extra_data_size(void)
26{
27 return 0;
28}