elfcore.c 459 B

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