diff options
author | David Howells <dhowells@redhat.com> | 2008-02-08 07:19:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:30 -0500 |
commit | b0b933c08bd5fd053bbba8ba6387f543be03d49f (patch) | |
tree | c3c6d2e44d2104231daa31f684b9e7fcdc3b7896 | |
parent | 922a70d327bd4b11342c2afd08e20d35f52064c3 (diff) |
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: David Howells <dhowells@redhat.com>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/alpha/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/Kconfig | 3 | ||||
-rw-r--r-- | arch/h8300/Kconfig | 3 | ||||
-rw-r--r-- | arch/m32r/Kconfig | 3 | ||||
-rw-r--r-- | arch/m68k/Kconfig | 3 | ||||
-rw-r--r-- | arch/m68knommu/Kconfig | 3 | ||||
-rw-r--r-- | arch/parisc/Kconfig | 3 | ||||
-rw-r--r-- | arch/sh/Kconfig | 3 | ||||
-rw-r--r-- | arch/sparc/Kconfig | 3 | ||||
-rw-r--r-- | arch/sparc64/Kconfig | 5 | ||||
-rw-r--r-- | arch/um/Kconfig.i386 | 2 | ||||
-rw-r--r-- | arch/um/Kconfig.x86_64 | 2 | ||||
-rw-r--r-- | arch/v850/Kconfig | 3 | ||||
-rw-r--r-- | arch/x86/Kconfig | 5 |
14 files changed, 42 insertions, 2 deletions
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig index 01b10ab588a6..d9df913a464d 100644 --- a/arch/alpha/Kconfig +++ b/arch/alpha/Kconfig | |||
@@ -67,6 +67,9 @@ config AUTO_IRQ_AFFINITY | |||
67 | depends on SMP | 67 | depends on SMP |
68 | default y | 68 | default y |
69 | 69 | ||
70 | config ARCH_SUPPORTS_AOUT | ||
71 | def_bool y | ||
72 | |||
70 | source "init/Kconfig" | 73 | source "init/Kconfig" |
71 | 74 | ||
72 | 75 | ||
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e19e7744e366..4127af93c5f3 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -126,6 +126,9 @@ config GENERIC_CALIBRATE_DELAY | |||
126 | bool | 126 | bool |
127 | default y | 127 | default y |
128 | 128 | ||
129 | config ARCH_SUPPORTS_AOUT | ||
130 | def_bool y | ||
131 | |||
129 | config ARCH_MAY_HAVE_PC_FDC | 132 | config ARCH_MAY_HAVE_PC_FDC |
130 | bool | 133 | bool |
131 | 134 | ||
diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig index dc61222e1120..b4ba4f8b505c 100644 --- a/arch/h8300/Kconfig +++ b/arch/h8300/Kconfig | |||
@@ -65,6 +65,9 @@ config TIME_LOW_RES | |||
65 | bool | 65 | bool |
66 | default y | 66 | default y |
67 | 67 | ||
68 | config ARCH_SUPPORTS_AOUT | ||
69 | def_bool y | ||
70 | |||
68 | config NO_IOPORT | 71 | config NO_IOPORT |
69 | def_bool y | 72 | def_bool y |
70 | 73 | ||
diff --git a/arch/m32r/Kconfig b/arch/m32r/Kconfig index 795180b8fd8e..fe61e00a604f 100644 --- a/arch/m32r/Kconfig +++ b/arch/m32r/Kconfig | |||
@@ -35,6 +35,9 @@ config NO_IOPORT | |||
35 | config NO_DMA | 35 | config NO_DMA |
36 | def_bool y | 36 | def_bool y |
37 | 37 | ||
38 | config ARCH_SUPPORTS_AOUT | ||
39 | def_bool y | ||
40 | |||
38 | source "init/Kconfig" | 41 | source "init/Kconfig" |
39 | 42 | ||
40 | 43 | ||
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig index ffabd01c45eb..bcbf3e4ee9d4 100644 --- a/arch/m68k/Kconfig +++ b/arch/m68k/Kconfig | |||
@@ -52,6 +52,9 @@ config NO_IOPORT | |||
52 | config NO_DMA | 52 | config NO_DMA |
53 | def_bool SUN3 | 53 | def_bool SUN3 |
54 | 54 | ||
55 | config ARCH_SUPPORTS_AOUT | ||
56 | def_bool y | ||
57 | |||
55 | mainmenu "Linux/68k Kernel Configuration" | 58 | mainmenu "Linux/68k Kernel Configuration" |
56 | 59 | ||
57 | source "init/Kconfig" | 60 | source "init/Kconfig" |
diff --git a/arch/m68knommu/Kconfig b/arch/m68knommu/Kconfig index 6abbbb8aac5e..24f732342d3e 100644 --- a/arch/m68knommu/Kconfig +++ b/arch/m68knommu/Kconfig | |||
@@ -64,6 +64,9 @@ config TIME_LOW_RES | |||
64 | config NO_IOPORT | 64 | config NO_IOPORT |
65 | def_bool y | 65 | def_bool y |
66 | 66 | ||
67 | config ARCH_SUPPORTS_AOUT | ||
68 | def_bool y | ||
69 | |||
67 | source "init/Kconfig" | 70 | source "init/Kconfig" |
68 | 71 | ||
69 | menu "Processor type and features" | 72 | menu "Processor type and features" |
diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig index 028d8a0fdbfd..d929ac84f25a 100644 --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig | |||
@@ -75,6 +75,9 @@ config IRQ_PER_CPU | |||
75 | bool | 75 | bool |
76 | default y | 76 | default y |
77 | 77 | ||
78 | config ARCH_SUPPORTS_AOUT | ||
79 | def_bool y | ||
80 | |||
78 | # unless you want to implement ACPI on PA-RISC ... ;-) | 81 | # unless you want to implement ACPI on PA-RISC ... ;-) |
79 | config PM | 82 | config PM |
80 | bool | 83 | bool |
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 1c3a90835c7e..6e035d1cf789 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -89,6 +89,9 @@ config ARCH_HAS_ILOG2_U64 | |||
89 | config ARCH_NO_VIRT_TO_BUS | 89 | config ARCH_NO_VIRT_TO_BUS |
90 | def_bool y | 90 | def_bool y |
91 | 91 | ||
92 | config ARCH_SUPPORTS_AOUT | ||
93 | def_bool y | ||
94 | |||
92 | source "init/Kconfig" | 95 | source "init/Kconfig" |
93 | 96 | ||
94 | menu "System type" | 97 | menu "System type" |
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 99f8971716d2..08821b078ecc 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
@@ -27,6 +27,9 @@ config ARCH_NO_VIRT_TO_BUS | |||
27 | config OF | 27 | config OF |
28 | def_bool y | 28 | def_bool y |
29 | 29 | ||
30 | config ARCH_SUPPORTS_AOUT | ||
31 | def_bool y | ||
32 | |||
30 | source "init/Kconfig" | 33 | source "init/Kconfig" |
31 | 34 | ||
32 | menu "General machine setup" | 35 | menu "General machine setup" |
diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig index a8c6366f05a1..5023b815e522 100644 --- a/arch/sparc64/Kconfig +++ b/arch/sparc64/Kconfig | |||
@@ -81,6 +81,9 @@ config GENERIC_HARDIRQS_NO__DO_IRQ | |||
81 | bool | 81 | bool |
82 | def_bool y | 82 | def_bool y |
83 | 83 | ||
84 | config ARCH_SUPPORTS_AOUT | ||
85 | def_bool y | ||
86 | |||
84 | choice | 87 | choice |
85 | prompt "Kernel page size" | 88 | prompt "Kernel page size" |
86 | default SPARC64_PAGE_SIZE_8KB | 89 | default SPARC64_PAGE_SIZE_8KB |
@@ -390,7 +393,7 @@ config BINFMT_ELF32 | |||
390 | 393 | ||
391 | config BINFMT_AOUT32 | 394 | config BINFMT_AOUT32 |
392 | bool "Kernel support for 32-bit (ie. SunOS) a.out binaries" | 395 | bool "Kernel support for 32-bit (ie. SunOS) a.out binaries" |
393 | depends on SPARC32_COMPAT | 396 | depends on SPARC32_COMPAT && ARCH_SUPPORTS_AOUT |
394 | help | 397 | help |
395 | This allows you to run 32-bit a.out format binaries on your Ultra. | 398 | This allows you to run 32-bit a.out format binaries on your Ultra. |
396 | If you want to run SunOS binaries (see SunOS binary emulation below) | 399 | If you want to run SunOS binaries (see SunOS binary emulation below) |
diff --git a/arch/um/Kconfig.i386 b/arch/um/Kconfig.i386 index 717f5d3440e3..e75264603d24 100644 --- a/arch/um/Kconfig.i386 +++ b/arch/um/Kconfig.i386 | |||
@@ -84,3 +84,5 @@ config GENERIC_HWEIGHT | |||
84 | bool | 84 | bool |
85 | default y | 85 | default y |
86 | 86 | ||
87 | config ARCH_SUPPORTS_AOUT | ||
88 | def_bool y | ||
diff --git a/arch/um/Kconfig.x86_64 b/arch/um/Kconfig.x86_64 index d632e9a89cc3..b438f0e14271 100644 --- a/arch/um/Kconfig.x86_64 +++ b/arch/um/Kconfig.x86_64 | |||
@@ -39,3 +39,5 @@ config GENERIC_HWEIGHT | |||
39 | bool | 39 | bool |
40 | default y | 40 | default y |
41 | 41 | ||
42 | config ARCH_SUPPORTS_AOUT | ||
43 | def_bool y | ||
diff --git a/arch/v850/Kconfig b/arch/v850/Kconfig index ace479ab273f..225f30d7cb32 100644 --- a/arch/v850/Kconfig +++ b/arch/v850/Kconfig | |||
@@ -53,6 +53,9 @@ config ARCH_HAS_ILOG2_U64 | |||
53 | bool | 53 | bool |
54 | default n | 54 | default n |
55 | 55 | ||
56 | config ARCH_SUPPORTS_AOUT | ||
57 | def_bool y | ||
58 | |||
56 | # Turn off some random 386 crap that can affect device config | 59 | # Turn off some random 386 crap that can affect device config |
57 | config ISA | 60 | config ISA |
58 | bool | 61 | bool |
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 9d0acedf5f3f..65a70b777c12 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -136,6 +136,9 @@ config AUDIT_ARCH | |||
136 | bool | 136 | bool |
137 | default X86_64 | 137 | default X86_64 |
138 | 138 | ||
139 | config ARCH_SUPPORTS_AOUT | ||
140 | def_bool y | ||
141 | |||
139 | # Use the generic interrupt handling code in kernel/irq/: | 142 | # Use the generic interrupt handling code in kernel/irq/: |
140 | config GENERIC_HARDIRQS | 143 | config GENERIC_HARDIRQS |
141 | bool | 144 | bool |
@@ -1577,7 +1580,7 @@ config IA32_EMULATION | |||
1577 | 1580 | ||
1578 | config IA32_AOUT | 1581 | config IA32_AOUT |
1579 | tristate "IA32 a.out support" | 1582 | tristate "IA32 a.out support" |
1580 | depends on IA32_EMULATION | 1583 | depends on IA32_EMULATION && ARCH_SUPPORTS_AOUT |
1581 | help | 1584 | help |
1582 | Support old a.out binaries in the 32bit emulation. | 1585 | Support old a.out binaries in the 32bit emulation. |
1583 | 1586 | ||