aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/binfmt_elf.c4
-rw-r--r--init/Kconfig6
2 files changed, 8 insertions, 2 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index 288386b1deff..80ca932ba0bd 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -58,7 +58,7 @@ extern int dump_fpu (struct pt_regs *, elf_fpregset_t *);
58 * If we don't support core dumping, then supply a NULL so we 58 * If we don't support core dumping, then supply a NULL so we
59 * don't even try. 59 * don't even try.
60 */ 60 */
61#ifdef USE_ELF_CORE_DUMP 61#if defined(USE_ELF_CORE_DUMP) && defined(CONFIG_ELF_CORE)
62static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file); 62static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file);
63#else 63#else
64#define elf_core_dump NULL 64#define elf_core_dump NULL
@@ -1113,7 +1113,7 @@ out:
1113 * Note that some platforms still use traditional core dumps and not 1113 * Note that some platforms still use traditional core dumps and not
1114 * the ELF core dump. Each platform can select it as appropriate. 1114 * the ELF core dump. Each platform can select it as appropriate.
1115 */ 1115 */
1116#ifdef USE_ELF_CORE_DUMP 1116#if defined(USE_ELF_CORE_DUMP) && defined(CONFIG_ELF_CORE)
1117 1117
1118/* 1118/*
1119 * ELF core dumper 1119 * ELF core dumper
diff --git a/init/Kconfig b/init/Kconfig
index 1a1f114a37e8..9ac522a40130 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -327,6 +327,12 @@ config DOUBLEFAULT
327 would otherwise cause a system to silently reboot. Disabling this 327 would otherwise cause a system to silently reboot. Disabling this
328 option saves about 4k. 328 option saves about 4k.
329 329
330config ELF_CORE
331 default y
332 bool "Enable ELF core dumps" if EMBEDDED
333 help
334 Enable support for generating core dumps. Disabling saves about 4k.
335
330config BASE_FULL 336config BASE_FULL
331 default y 337 default y
332 bool "Enable full-sized data structures for core" if EMBEDDED 338 bool "Enable full-sized data structures for core" if EMBEDDED