elfcore.c 432 Bytes
Newer Older
1
// SPDX-License-Identifier: GPL-2.0
2 3 4
#include <linux/elf.h>
#include <linux/fs.h>
#include <linux/mm.h>
5
#include <linux/binfmts.h>
6 7 8 9 10 11

Elf_Half __weak elf_core_extra_phdrs(void)
{
	return 0;
}

12
int __weak elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset)
13 14 15 16
{
	return 1;
}

17
int __weak elf_core_write_extra_data(struct coredump_params *cprm)
18 19 20
{
	return 1;
}
21 22 23 24 25

size_t __weak elf_core_extra_data_size(void)
{
	return 0;
}