|
@@ -75,14 +75,14 @@ static int elf_fdpic_map_file_constdisp_on_uclinux(struct elf_fdpic_params *,
|
|
|
static int elf_fdpic_map_file_by_direct_mmap(struct elf_fdpic_params *,
|
|
|
struct file *, struct mm_struct *);
|
|
|
|
|
|
-#if defined(USE_ELF_CORE_DUMP) && defined(CONFIG_ELF_CORE)
|
|
|
+#ifdef CONFIG_ELF_CORE
|
|
|
static int elf_fdpic_core_dump(long, struct pt_regs *, struct file *, unsigned long limit);
|
|
|
#endif
|
|
|
|
|
|
static struct linux_binfmt elf_fdpic_format = {
|
|
|
.module = THIS_MODULE,
|
|
|
.load_binary = load_elf_fdpic_binary,
|
|
|
-#if defined(USE_ELF_CORE_DUMP) && defined(CONFIG_ELF_CORE)
|
|
|
+#ifdef CONFIG_ELF_CORE
|
|
|
.core_dump = elf_fdpic_core_dump,
|
|
|
#endif
|
|
|
.min_coredump = ELF_EXEC_PAGESIZE,
|
|
@@ -1201,7 +1201,7 @@ static int elf_fdpic_map_file_by_direct_mmap(struct elf_fdpic_params *params,
|
|
|
*
|
|
|
* Modelled on fs/binfmt_elf.c core dumper
|
|
|
*/
|
|
|
-#if defined(USE_ELF_CORE_DUMP) && defined(CONFIG_ELF_CORE)
|
|
|
+#ifdef CONFIG_ELF_CORE
|
|
|
|
|
|
/*
|
|
|
* These are the only things you should do on a core-file: use only these
|
|
@@ -1826,4 +1826,4 @@ cleanup:
|
|
|
#undef NUM_NOTES
|
|
|
}
|
|
|
|
|
|
-#endif /* USE_ELF_CORE_DUMP */
|
|
|
+#endif /* CONFIG_ELF_CORE */
|