Commit b0b933c0 authored by David Howells's avatar David Howells Committed by Linus Torvalds

aout: mark arches that support A.OUT format

Mark arches that support A.OUT format by including the following in their
master Kconfig files:

	config ARCH_SUPPORTS_AOUT
		def_bool y

This should also be set if the arch provides compatibility A.OUT support for
an older arch, for instance x86_64 for i386 or sparc64 for sparc.

I've guessed at which arches don't, based on comments in the code, however I'm
sure that some of the ones I've marked as 'yes' actually should be 'no'.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 922a70d3
...@@ -67,6 +67,9 @@ config AUTO_IRQ_AFFINITY ...@@ -67,6 +67,9 @@ config AUTO_IRQ_AFFINITY
depends on SMP depends on SMP
default y default y
config ARCH_SUPPORTS_AOUT
def_bool y
source "init/Kconfig" source "init/Kconfig"
......
...@@ -126,6 +126,9 @@ config GENERIC_CALIBRATE_DELAY ...@@ -126,6 +126,9 @@ config GENERIC_CALIBRATE_DELAY
bool bool
default y default y
config ARCH_SUPPORTS_AOUT
def_bool y
config ARCH_MAY_HAVE_PC_FDC config ARCH_MAY_HAVE_PC_FDC
bool bool
......
...@@ -65,6 +65,9 @@ config TIME_LOW_RES ...@@ -65,6 +65,9 @@ config TIME_LOW_RES
bool bool
default y default y
config ARCH_SUPPORTS_AOUT
def_bool y
config NO_IOPORT config NO_IOPORT
def_bool y def_bool y
......
...@@ -35,6 +35,9 @@ config NO_IOPORT ...@@ -35,6 +35,9 @@ config NO_IOPORT
config NO_DMA config NO_DMA
def_bool y def_bool y
config ARCH_SUPPORTS_AOUT
def_bool y
source "init/Kconfig" source "init/Kconfig"
......
...@@ -52,6 +52,9 @@ config NO_IOPORT ...@@ -52,6 +52,9 @@ config NO_IOPORT
config NO_DMA config NO_DMA
def_bool SUN3 def_bool SUN3
config ARCH_SUPPORTS_AOUT
def_bool y
mainmenu "Linux/68k Kernel Configuration" mainmenu "Linux/68k Kernel Configuration"
source "init/Kconfig" source "init/Kconfig"
......
...@@ -64,6 +64,9 @@ config TIME_LOW_RES ...@@ -64,6 +64,9 @@ config TIME_LOW_RES
config NO_IOPORT config NO_IOPORT
def_bool y def_bool y
config ARCH_SUPPORTS_AOUT
def_bool y
source "init/Kconfig" source "init/Kconfig"
menu "Processor type and features" menu "Processor type and features"
......
...@@ -75,6 +75,9 @@ config IRQ_PER_CPU ...@@ -75,6 +75,9 @@ config IRQ_PER_CPU
bool bool
default y default y
config ARCH_SUPPORTS_AOUT
def_bool y
# unless you want to implement ACPI on PA-RISC ... ;-) # unless you want to implement ACPI on PA-RISC ... ;-)
config PM config PM
bool bool
......
...@@ -89,6 +89,9 @@ config ARCH_HAS_ILOG2_U64 ...@@ -89,6 +89,9 @@ config ARCH_HAS_ILOG2_U64
config ARCH_NO_VIRT_TO_BUS config ARCH_NO_VIRT_TO_BUS
def_bool y def_bool y
config ARCH_SUPPORTS_AOUT
def_bool y
source "init/Kconfig" source "init/Kconfig"
menu "System type" menu "System type"
......
...@@ -27,6 +27,9 @@ config ARCH_NO_VIRT_TO_BUS ...@@ -27,6 +27,9 @@ config ARCH_NO_VIRT_TO_BUS
config OF config OF
def_bool y def_bool y
config ARCH_SUPPORTS_AOUT
def_bool y
source "init/Kconfig" source "init/Kconfig"
menu "General machine setup" menu "General machine setup"
......
...@@ -81,6 +81,9 @@ config GENERIC_HARDIRQS_NO__DO_IRQ ...@@ -81,6 +81,9 @@ config GENERIC_HARDIRQS_NO__DO_IRQ
bool bool
def_bool y def_bool y
config ARCH_SUPPORTS_AOUT
def_bool y
choice choice
prompt "Kernel page size" prompt "Kernel page size"
default SPARC64_PAGE_SIZE_8KB default SPARC64_PAGE_SIZE_8KB
...@@ -390,7 +393,7 @@ config BINFMT_ELF32 ...@@ -390,7 +393,7 @@ config BINFMT_ELF32
config BINFMT_AOUT32 config BINFMT_AOUT32
bool "Kernel support for 32-bit (ie. SunOS) a.out binaries" bool "Kernel support for 32-bit (ie. SunOS) a.out binaries"
depends on SPARC32_COMPAT depends on SPARC32_COMPAT && ARCH_SUPPORTS_AOUT
help help
This allows you to run 32-bit a.out format binaries on your Ultra. This allows you to run 32-bit a.out format binaries on your Ultra.
If you want to run SunOS binaries (see SunOS binary emulation below) If you want to run SunOS binaries (see SunOS binary emulation below)
......
...@@ -84,3 +84,5 @@ config GENERIC_HWEIGHT ...@@ -84,3 +84,5 @@ config GENERIC_HWEIGHT
bool bool
default y default y
config ARCH_SUPPORTS_AOUT
def_bool y
...@@ -39,3 +39,5 @@ config GENERIC_HWEIGHT ...@@ -39,3 +39,5 @@ config GENERIC_HWEIGHT
bool bool
default y default y
config ARCH_SUPPORTS_AOUT
def_bool y
...@@ -53,6 +53,9 @@ config ARCH_HAS_ILOG2_U64 ...@@ -53,6 +53,9 @@ config ARCH_HAS_ILOG2_U64
bool bool
default n default n
config ARCH_SUPPORTS_AOUT
def_bool y
# Turn off some random 386 crap that can affect device config # Turn off some random 386 crap that can affect device config
config ISA config ISA
bool bool
......
...@@ -136,6 +136,9 @@ config AUDIT_ARCH ...@@ -136,6 +136,9 @@ config AUDIT_ARCH
bool bool
default X86_64 default X86_64
config ARCH_SUPPORTS_AOUT
def_bool y
# Use the generic interrupt handling code in kernel/irq/: # Use the generic interrupt handling code in kernel/irq/:
config GENERIC_HARDIRQS config GENERIC_HARDIRQS
bool bool
...@@ -1577,7 +1580,7 @@ config IA32_EMULATION ...@@ -1577,7 +1580,7 @@ config IA32_EMULATION
config IA32_AOUT config IA32_AOUT
tristate "IA32 a.out support" tristate "IA32 a.out support"
depends on IA32_EMULATION depends on IA32_EMULATION && ARCH_SUPPORTS_AOUT
help help
Support old a.out binaries in the 32bit emulation. Support old a.out binaries in the 32bit emulation.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment