diff --git a/[refs] b/[refs] index c2fca2a4b5fd..b3cdc30a6465 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e585e47031751f4e393e10ffd922885508b958dd +refs/heads/master: 708e9a794cf8822b760edaccd9053edb07c34d19 diff --git a/trunk/fs/binfmt_elf.c b/trunk/fs/binfmt_elf.c index 288386b1deff..80ca932ba0bd 100644 --- a/trunk/fs/binfmt_elf.c +++ b/trunk/fs/binfmt_elf.c @@ -58,7 +58,7 @@ extern int dump_fpu (struct pt_regs *, elf_fpregset_t *); * If we don't support core dumping, then supply a NULL so we * don't even try. */ -#ifdef USE_ELF_CORE_DUMP +#if defined(USE_ELF_CORE_DUMP) && defined(CONFIG_ELF_CORE) static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file); #else #define elf_core_dump NULL @@ -1113,7 +1113,7 @@ static int load_elf_library(struct file *file) * Note that some platforms still use traditional core dumps and not * the ELF core dump. Each platform can select it as appropriate. */ -#ifdef USE_ELF_CORE_DUMP +#if defined(USE_ELF_CORE_DUMP) && defined(CONFIG_ELF_CORE) /* * ELF core dumper diff --git a/trunk/init/Kconfig b/trunk/init/Kconfig index 1a1f114a37e8..9ac522a40130 100644 --- a/trunk/init/Kconfig +++ b/trunk/init/Kconfig @@ -327,6 +327,12 @@ config DOUBLEFAULT would otherwise cause a system to silently reboot. Disabling this option saves about 4k. +config ELF_CORE + default y + bool "Enable ELF core dumps" if EMBEDDED + help + Enable support for generating core dumps. Disabling saves about 4k. + config BASE_FULL default y bool "Enable full-sized data structures for core" if EMBEDDED