linux/arch
David Howells 7fa3031500 aout: suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT
Suppress A.OUT library support if CONFIG_ARCH_SUPPORTS_AOUT is not set.

Not all architectures support the A.OUT binfmt, so the ELF binfmt should not
be permitted to go looking for A.OUT libraries to load in such a case.  Not
only that, but under such conditions A.OUT core dumps are not produced either.

To make this work, this patch also does the following:

 (1) Makes the existence of the contents of linux/a.out.h contingent on
     CONFIG_ARCH_SUPPORTS_AOUT.

 (2) Renames dump_thread() to aout_dump_thread() as it's only called by A.OUT
     core dumping code.

 (3) Moves aout_dump_thread() into asm/a.out-core.h and makes it inline.  This
     is then included only where needed.  This means that this bit of arch
     code will be stored in the appropriate A.OUT binfmt module rather than
     the core kernel.

 (4) Drops A.OUT support for Blackfin (according to Mike Frysinger it's not
     needed) and FRV.

This patch depends on the previous patch to move STACK_TOP[_MAX] out of
asm/a.out.h and into asm/processor.h as they're required whether or not A.OUT
format is available.

[jdike@addtoit.com: uml: re-remove accidentally restored code]
Signed-off-by: David Howells <dhowells@redhat.com>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-08 09:22:30 -08:00
..
alpha aout: suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT 2008-02-08 09:22:30 -08:00
arm aout: suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT 2008-02-08 09:22:30 -08:00
avr32 Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
blackfin Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
cris Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
frv Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
h8300 aout: mark arches that support A.OUT format 2008-02-08 09:22:30 -08:00
ia64 time: fix typo in comments 2008-02-08 09:22:29 -08:00
m32r aout: mark arches that support A.OUT format 2008-02-08 09:22:30 -08:00
m68k aout: suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT 2008-02-08 09:22:30 -08:00
m68knommu aout: mark arches that support A.OUT format 2008-02-08 09:22:30 -08:00
mips pid: fix mips irix emulation pid usage 2008-02-08 09:22:28 -08:00
parisc aout: mark arches that support A.OUT format 2008-02-08 09:22:30 -08:00
powerpc Fix compilation of powerpc asm-offsets.c with old gcc 2008-02-07 14:54:45 -08:00
ppc scheduled OSS driver removal 2008-02-06 10:41:02 -08:00
s390 proc: seqfile convert proc_pid_status to properly handle pid namespaces 2008-02-08 09:22:24 -08:00
sh aout: mark arches that support A.OUT format 2008-02-08 09:22:30 -08:00
sparc aout: suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT 2008-02-08 09:22:30 -08:00
sparc64 aout: suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT 2008-02-08 09:22:30 -08:00
um aout: suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT 2008-02-08 09:22:30 -08:00
v850 aout: mark arches that support A.OUT format 2008-02-08 09:22:30 -08:00
x86 aout: suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT 2008-02-08 09:22:30 -08:00
xtensa calibrate_delay() must be __cpuinit 2008-02-06 10:41:08 -08:00
.gitignore arch: Ignore arch/i386 and arch/x86_64 2008-01-19 21:29:39 -08:00
Kconfig Move Kconfig.instrumentation to arch/Kconfig and init/Kconfig 2008-02-03 08:58:08 +01:00