linux/arch/um/kernel
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
..
skas uml: redo the calculation of NR_syscalls 2008-02-05 09:44:32 -08:00
asm-offsets.c [PATCH] uml: fix missing KBUILD_BASENAME 2006-01-11 18:42:09 -08:00
config.c.in
dyn.lds.S all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
exec.c uml: cover stubs with a VMA 2008-02-05 09:44:29 -08:00
exitcode.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
gmon_syms.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
gprof_syms.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
init_task.c uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
initrd.c uml: install panic notifier earlier 2008-02-05 09:44:29 -08:00
irq.c uml: miscellaneous code cleanups 2008-02-05 09:44:29 -08:00
ksyms.c aout: suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT 2008-02-08 09:22:30 -08:00
Makefile uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
mem.c uml: remove map_cb 2008-02-05 09:44:31 -08:00
physmem.c uml: SMP locking commentary 2008-02-05 09:44:30 -08:00
process.c aout: suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT 2008-02-08 09:22:30 -08:00
ptrace.c spelling fixes: arch/um/ 2007-10-20 01:23:03 +02:00
reboot.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
sigio.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
signal.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
smp.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
syscall.c uml: get rid of syscall counters 2008-02-05 09:44:30 -08:00
sysrq.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
time.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
tlb.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
trap.c uml: kill processes instead of panicing kernel 2008-02-05 09:44:28 -08:00
uaccess.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
um_arch.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
umid.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
uml.lds.S all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
vmlinux.lds.S [PATCH] uml: tidy biarch gcc support 2006-07-14 21:53:52 -07:00