forked from luck/tmp_suning_uos_patched
7fa3031500
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>
32 lines
731 B
NASM
32 lines
731 B
NASM
ifeq ($(wildcard include/asm-$(SRCARCH)/a.out.h),include/asm-$(SRCARCH)/a.out.h)
|
|
unifdef-y += a.out.h
|
|
endif
|
|
unifdef-y += auxvec.h
|
|
unifdef-y += byteorder.h
|
|
unifdef-y += errno.h
|
|
unifdef-y += fcntl.h
|
|
unifdef-y += ioctl.h
|
|
unifdef-y += ioctls.h
|
|
unifdef-y += ipcbuf.h
|
|
unifdef-y += mman.h
|
|
unifdef-y += msgbuf.h
|
|
unifdef-y += param.h
|
|
unifdef-y += poll.h
|
|
unifdef-y += posix_types.h
|
|
unifdef-y += ptrace.h
|
|
unifdef-y += resource.h
|
|
unifdef-y += sembuf.h
|
|
unifdef-y += setup.h
|
|
unifdef-y += shmbuf.h
|
|
unifdef-y += sigcontext.h
|
|
unifdef-y += siginfo.h
|
|
unifdef-y += signal.h
|
|
unifdef-y += socket.h
|
|
unifdef-y += sockios.h
|
|
unifdef-y += stat.h
|
|
unifdef-y += statfs.h
|
|
unifdef-y += termbits.h
|
|
unifdef-y += termios.h
|
|
unifdef-y += types.h
|
|
unifdef-y += unistd.h
|