Skip to content

Commit 6208721

Browse files
davidhildenbrandmattst88
authored andcommitted
binfmt: remove support for em86 (alpha only)
We have a fairly specific alpha binary loader in Linux: running x86 (i386, i486) binaries via the em86 [1] emulator. As noted in the Kconfig option, the same behavior can be achieved via binfmt_misc, for example, more nowadays used for running qemu-user. An example on how to get binfmt_misc running with em86 can be found in Documentation/admin-guide/binfmt-misc.rst The defconfig does not have CONFIG_BINFMT_EM86=y set. And doing a make defconfig && make olddefconfig results in # CONFIG_BINFMT_EM86 is not set ... as we don't seem to have any supported Linux distirbution for alpha anymore, there isn't really any "default" user of that feature anymore. Searching for "CONFIG_BINFMT_EM86=y" reveals mostly discussions from around 20 years ago, like [2] describing how to get netscape via em86 running via em86, or [3] discussing that running wine or installing Win 3.11 through em86 would be a nice feature. The latest binaries available for em86 are from 2000, version 2.2.1 [4] -- which translates to "unsupported"; further, em86 doesn't even work with glibc-2.x but only with glibc-2.0 [4, 5]. These are clear signs that there might not be too many em86 users out there, especially users relying on modern Linux kernels. Even though the code footprint is relatively small, let's just get rid of this blast from the past that's effectively unused. [1] http://ftp.dreamtime.org/pub/linux/Linux-Alpha/em86/v0.4/docs/em86.html [2] https://static.lwn.net/1998/1119/a/alpha-netscape.html [3] https://groups.google.com/g/linux.debian.alpha/c/AkGuQHeCe0Y [4] http://zeniv.linux.org.uk/pub/linux/alpha/em86/v2.2-1/relnotes.2.2.1.html [5] https://forum.teamspeak.com/archive/index.php/t-1477.html Cc: Alexander Viro <[email protected]> Cc: Richard Henderson <[email protected]> Cc: Ivan Kokshaysky <[email protected]> Cc: Matt Turner <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: David Hildenbrand <[email protected]> Signed-off-by: Matt Turner <[email protected]>
1 parent 8f34ed9 commit 6208721

File tree

3 files changed

+0
-126
lines changed

3 files changed

+0
-126
lines changed

fs/Kconfig.binfmt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -168,21 +168,6 @@ config OSF4_COMPAT
168168
with v4 shared libraries freely available from Compaq. If you're
169169
going to use shared libraries from Tru64 version 5.0 or later, say N.
170170

171-
config BINFMT_EM86
172-
tristate "Kernel support for Linux/Intel ELF binaries"
173-
depends on ALPHA
174-
help
175-
Say Y here if you want to be able to execute Linux/Intel ELF
176-
binaries just like native Alpha binaries on your Alpha machine. For
177-
this to work, you need to have the emulator /usr/bin/em86 in place.
178-
179-
You can get the same functionality by saying N here and saying Y to
180-
"Kernel support for MISC binaries".
181-
182-
You may answer M to compile the emulation support as a module and
183-
later load the module when you want to use a Linux/Intel binary. The
184-
module will be called binfmt_em86. If unsure, say Y.
185-
186171
config BINFMT_MISC
187172
tristate "Kernel support for MISC binaries"
188173
help

fs/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ obj-$(CONFIG_FS_ENCRYPTION) += crypto/
3939
obj-$(CONFIG_FS_VERITY) += verity/
4040
obj-$(CONFIG_FILE_LOCKING) += locks.o
4141
obj-$(CONFIG_BINFMT_AOUT) += binfmt_aout.o
42-
obj-$(CONFIG_BINFMT_EM86) += binfmt_em86.o
4342
obj-$(CONFIG_BINFMT_MISC) += binfmt_misc.o
4443
obj-$(CONFIG_BINFMT_SCRIPT) += binfmt_script.o
4544
obj-$(CONFIG_BINFMT_ELF) += binfmt_elf.o

fs/binfmt_em86.c

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)