2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 15:43:59 +08:00
linux-next/arch/m68k/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
..
asm-offsets.c [PATCH] m68k: namespace pollution fix (custom->amiga_custom) 2006-01-12 09:09:00 -08:00
bios32.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
dma.c m68k: sg fallout 2007-10-24 08:55:40 +02:00
entry.S timerfd: new timerfd API 2008-02-05 09:44:07 -08:00
head.S m68k: use .text.head 2007-07-20 08:24:49 -07:00
ints.c take declarations of enable_irq() et.al. to linux/interrupt.h 2007-07-22 11:44:00 -07:00
m68k_ksyms.c [PATCH] clean m68k ksyms 2006-10-11 11:17:06 -07:00
Makefile m68k: runtime patching infrastructure 2007-05-31 07:58:13 -07:00
module.c m68k: discontinuous memory support 2007-05-31 07:58:14 -07:00
module.lds m68k: runtime patching infrastructure 2007-05-31 07:58:13 -07:00
process.c aout: suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT 2008-02-08 09:22:30 -08:00
ptrace.c Consolidate PTRACE_DETACH 2007-10-16 09:42:49 -07:00
semaphore.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
setup.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
signal.c [PATCH] fix incorrect SA_ONSTACK behaviour for 64-bit processes 2006-06-23 07:43:05 -07:00
sun3-head.S m68k: use .text.head 2007-07-20 08:24:49 -07:00
sys_m68k.c remove include/asm-*/ipc.h 2007-10-17 08:42:55 -07:00
time.c m68k: missing __init 2007-07-20 08:24:49 -07:00
traps.c Use helpers to obtain task pid in printks (arch code) 2007-10-19 11:53:43 -07:00
vmlinux-std.lds all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
vmlinux-sun3.lds all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
vmlinux.lds.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00