]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/elfcore.c
elf coredump: replace ELF_CORE_EXTRA_* macros by functions
[net-next-2.6.git] / kernel / elfcore.c
diff --git a/kernel/elfcore.c b/kernel/elfcore.c
new file mode 100644 (file)
index 0000000..5445741
--- /dev/null
@@ -0,0 +1,23 @@
+#include <linux/elf.h>
+#include <linux/fs.h>
+#include <linux/mm.h>
+
+#include <asm/elf.h>
+
+
+Elf_Half __weak elf_core_extra_phdrs(void)
+{
+       return 0;
+}
+
+int __weak elf_core_write_extra_phdrs(struct file *file, loff_t offset, size_t *size,
+                                     unsigned long limit)
+{
+       return 1;
+}
+
+int __weak elf_core_write_extra_data(struct file *file, size_t *size,
+                                    unsigned long limit)
+{
+       return 1;
+}