public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: akpm@osdl.org, davem@davemloft.net, schwidefsky@de.ibm.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 2/3] disallow modular binfmt_elf32
Date: Sat, 8 Jul 2006 20:05:54 +0200	[thread overview]
Message-ID: <20060708180554.GB7034@lst.de> (raw)

Currently most architectures either always build binfmt_elf32 in the
kernel image or make it a boolean option.  Only sparc64 and s390 allow
to build it modularly.  This patch turns the option into a boolean
aswell because elf requires various symbols that shouldn't be available
to modules.  The most urgent one is tasklist_lock whos export this patch
series kills, but there are others like force_sgi aswell.

Note that sparc doesn't allow a modular 32bit a.out handler either, and
that would be the more useful case as only few people want 32bit sunos
compatibility and 99.9% of all sparc64 users need 32bit linux native elf
support.


Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: linux-2.6/arch/s390/Kconfig
===================================================================
--- linux-2.6.orig/arch/s390/Kconfig	2006-07-06 14:21:17.000000000 +0200
+++ linux-2.6/arch/s390/Kconfig	2006-07-08 19:08:46.000000000 +0200
@@ -119,7 +119,7 @@
 	default y
 
 config BINFMT_ELF32
-	tristate "Kernel support for 31 bit ELF binaries"
+	bool "Kernel support for 31 bit ELF binaries"
 	depends on COMPAT
 	help
 	  This allows you to run 32-bit Linux/ELF binaries on your zSeries
Index: linux-2.6/arch/sparc64/Kconfig
===================================================================
--- linux-2.6.orig/arch/sparc64/Kconfig	2006-07-01 12:49:02.000000000 +0200
+++ linux-2.6/arch/sparc64/Kconfig	2006-07-08 19:08:32.000000000 +0200
@@ -334,7 +334,7 @@
 	default y
 
 config BINFMT_ELF32
-	tristate "Kernel support for 32-bit ELF binaries"
+	bool "Kernel support for 32-bit ELF binaries"
 	depends on SPARC32_COMPAT
 	help
 	  This allows you to run 32-bit Linux/ELF binaries on your Ultra.

             reply	other threads:[~2006-07-08 18:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-08 18:05 Christoph Hellwig [this message]
2006-07-08 20:48 ` [PATCH 2/3] disallow modular binfmt_elf32 David Miller
2006-07-10  6:06 ` Heiko Carstens
2006-07-10  8:27   ` Martin Schwidefsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060708180554.GB7034@lst.de \
    --to=hch@lst.de \
    --cc=akpm@osdl.org \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=schwidefsky@de.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox