elfcore.c 396 B

123456789101112131415161718192021222324
  1. #include <linux/elf.h>
  2. #include <linux/fs.h>
  3. #include <linux/mm.h>
  4. #include <linux/binfmts.h>
  5. Elf_Half __weak elf_core_extra_phdrs(void)
  6. {
  7. return 0;
  8. }
  9. int __weak elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset)
  10. {
  11. return 1;
  12. }
  13. int __weak elf_core_write_extra_data(struct coredump_params *cprm)
  14. {
  15. return 1;
  16. }
  17. size_t __weak elf_core_extra_data_size(void)
  18. {
  19. return 0;
  20. }