elf: kill USE_ELF_CORE_DUMP
Currently all architectures but microblaze unconditionally define USE_ELF_CORE_DUMP. The microblaze omission seems like an error to me, so let's kill this ifdef and make sure we are the same everywhere. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Hugh Dickins <hugh.dickins@tiscali.co.uk> Cc: <linux-arch@vger.kernel.org> Cc: Michal Simek <michal.simek@petalogix.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
d1da96aada
commit
698ba7b5a3
@@ -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 */
|
||||
|
Reference in New Issue
Block a user