ec8f24b7faaf3 (Thomas Gleixner 2019-05-19 13:07:45 +0100 1) # SPDX-License-Identifier: GPL-2.0-only
006477f40d2e7 (Christoph Hellwig 2018-07-31 13:39:34 +0200 2)
006477f40d2e7 (Christoph Hellwig 2018-07-31 13:39:34 +0200 3) menu "Executable file formats"
006477f40d2e7 (Christoph Hellwig 2018-07-31 13:39:34 +0200 4)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 5) config BINFMT_ELF
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 6) bool "Kernel support for ELF binaries"
a687a5337063a (Arnd Bergmann 2018-03-07 23:30:54 +0100 7) depends on MMU
f43edca7ed08f (Ralf Baechle 2016-05-23 16:22:26 -0700 8) select ELFCORE
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 9) default y
a7f7f6248d974 (Masahiro Yamada 2020-06-14 01:50:22 +0900 10) help
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 11) ELF (Executable and Linkable Format) is a format for libraries and
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 12) executables used across different architectures and operating
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 13) systems. Saying Y here will enable your kernel to run ELF binaries
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 14) and enlarge it by about 13 KB. ELF support under Linux has now all
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 15) but replaced the traditional Linux a.out formats (QMAGIC and ZMAGIC)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 16) because it is portable (this does *not* mean that you will be able
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 17) to run executables from different architectures or operating systems
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 18) however) and makes building run-time libraries very easy. Many new
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 19) executables are distributed solely in ELF format. You definitely
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 20) want to say Y here.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 21)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 22) Information about ELF is contained in the ELF HOWTO available from
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 23) <http://www.tldp.org/docs.html#howto>.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 24)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 25) If you find that after upgrading from Linux kernel 1.2 and saying Y
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 26) here, you still can't run any ELF binaries (they just crash), then
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 27) you'll have to install the newest ELF runtime libraries, including
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 28) ld.so (check the file <file:Documentation/Changes> for location and
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 29) latest version).
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 30)
b9d36d5d00029 (Roland McGrath 2008-01-30 13:31:46 +0100 31) config COMPAT_BINFMT_ELF
41026c343540e (Al Viro 2020-12-02 23:56:34 -0500 32) def_bool y
4cea5ceb4c692 (Alexey Dobriyan 2008-10-15 22:04:17 -0700 33) depends on COMPAT && BINFMT_ELF
f43edca7ed08f (Ralf Baechle 2016-05-23 16:22:26 -0700 34) select ELFCORE
b9d36d5d00029 (Roland McGrath 2008-01-30 13:31:46 +0100 35)
774c105ed8d79 (Paul Burton 2014-09-11 08:30:16 +0100 36) config ARCH_BINFMT_ELF_STATE
774c105ed8d79 (Paul Burton 2014-09-11 08:30:16 +0100 37) bool
774c105ed8d79 (Paul Burton 2014-09-11 08:30:16 +0100 38)
fe0f67660ee9c (Dave Martin 2020-03-16 16:50:46 +0000 39) config ARCH_HAVE_ELF_PROT
fe0f67660ee9c (Dave Martin 2020-03-16 16:50:46 +0000 40) bool
fe0f67660ee9c (Dave Martin 2020-03-16 16:50:46 +0000 41)
db751e309ff05 (Dave Martin 2020-03-16 16:50:43 +0000 42) config ARCH_USE_GNU_PROPERTY
db751e309ff05 (Dave Martin 2020-03-16 16:50:43 +0000 43) bool
db751e309ff05 (Dave Martin 2020-03-16 16:50:43 +0000 44)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 45) config BINFMT_ELF_FDPIC
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 46) bool "Kernel support for FDPIC ELF binaries"
382e67aec6a7e (Nicolas Pitre 2017-08-11 00:53:39 -0400 47) default y if !BINFMT_ELF
a579fcfa8e49c (Arnd Bergmann 2021-01-18 12:45:46 +0100 48) depends on (ARM || (SUPERH && !MMU))
f43edca7ed08f (Ralf Baechle 2016-05-23 16:22:26 -0700 49) select ELFCORE
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 50) help
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 51) ELF FDPIC binaries are based on ELF, but allow the individual load
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 52) segments of a binary to be located in memory independently of each
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 53) other. This makes this format ideal for use in environments where no
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 54) MMU is available as it still permits text segments to be shared,
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 55) even if data segments are not.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 56)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 57) It is also possible to run FDPIC ELF binaries on MMU linux also.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 58)
f43edca7ed08f (Ralf Baechle 2016-05-23 16:22:26 -0700 59) config ELFCORE
f43edca7ed08f (Ralf Baechle 2016-05-23 16:22:26 -0700 60) bool
f43edca7ed08f (Ralf Baechle 2016-05-23 16:22:26 -0700 61) help
f43edca7ed08f (Ralf Baechle 2016-05-23 16:22:26 -0700 62) This option enables kernel/elfcore.o.
f43edca7ed08f (Ralf Baechle 2016-05-23 16:22:26 -0700 63)
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 64) config CORE_DUMP_DEFAULT_ELF_HEADERS
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 65) bool "Write ELF core dumps with partial segments"
895021552d6ff (Roland McGrath 2010-10-27 15:34:09 -0700 66) default y
2d96d1053d97c (David Brownell 2009-01-09 16:40:52 -0800 67) depends on BINFMT_ELF && ELF_CORE
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 68) help
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 69) ELF core dump files describe each memory mapping of the crashed
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 70) process, and can contain or omit the memory contents of each one.
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 71) The contents of an unmodified text mapping are omitted by default.
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 72)
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 73) For an unmodified text mapping of an ELF object, including just
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 74) the first page of the file in a core dump makes it possible to
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 75) identify the build ID bits in the file, without paying the i/o
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 76) cost and disk space to dump all the text. However, versions of
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 77) GDB before 6.7 are confused by ELF core dump files in this format.
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 78)
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 79) The core dump behavior can be controlled per process using
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 80) the /proc/PID/coredump_filter pseudo-file; this setting is
0c1bc6b84525b (Mauro Carvalho Chehab 2020-04-14 18:48:37 +0200 81) inherited. See Documentation/filesystems/proc.rst for details.
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 82)
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 83) This config option changes the default setting of coredump_filter
895021552d6ff (Roland McGrath 2010-10-27 15:34:09 -0700 84) seen at boot time. If unsure, say Y.
656eb2cd5da15 (Roland McGrath 2008-10-18 20:28:23 -0700 85)
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 86) config BINFMT_SCRIPT
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 87) tristate "Kernel support for scripts starting with #!"
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 88) default y
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 89) help
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 90) Say Y here if you want to execute interpreted scripts starting with
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 91) #! followed by the path to an interpreter.
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 92)
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 93) You can build this support as a module; however, until that module
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 94) gets loaded, you cannot run scripts. Thus, if you want to load this
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 95) module from an initramfs, the portion of the initramfs before loading
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 96) this module must consist of compiled binaries only.
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 97)
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 98) Most systems will not boot if you say M or N here. If unsure, say Y.
2535e0d723e4d (Josh Triplett 2013-04-30 15:27:44 -0700 99)
aef0f78e7460c (Christoph Hellwig 2019-06-13 09:08:57 +0200 100) config ARCH_HAS_BINFMT_FLAT
aef0f78e7460c (Christoph Hellwig 2019-06-13 09:08:57 +0200 101) bool
aef0f78e7460c (Christoph Hellwig 2019-06-13 09:08:57 +0200 102)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 103) config BINFMT_FLAT
3202e1811fd31 (Adrian Bunk 2008-04-29 00:59:02 -0700 104) bool "Kernel support for flat binaries"
aef0f78e7460c (Christoph Hellwig 2019-06-13 09:08:57 +0200 105) depends on ARCH_HAS_BINFMT_FLAT
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 106) help
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 107) Support uClinux FLAT format binaries.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 108)
bdd15a288492f (Christoph Hellwig 2019-06-13 09:08:51 +0200 109) config BINFMT_FLAT_ARGVP_ENVP_ON_STACK
bdd15a288492f (Christoph Hellwig 2019-06-13 09:08:51 +0200 110) bool
bdd15a288492f (Christoph Hellwig 2019-06-13 09:08:51 +0200 111)
1d52dca117434 (Christoph Hellwig 2019-06-13 09:08:50 +0200 112) config BINFMT_FLAT_OLD_ALWAYS_RAM
1d52dca117434 (Christoph Hellwig 2019-06-13 09:08:50 +0200 113) bool
1d52dca117434 (Christoph Hellwig 2019-06-13 09:08:50 +0200 114)
04d82a6d0881e (Damien Le Moal 2021-04-17 10:10:08 +0900 115) config BINFMT_FLAT_NO_DATA_START_OFFSET
04d82a6d0881e (Damien Le Moal 2021-04-17 10:10:08 +0900 116) bool
04d82a6d0881e (Damien Le Moal 2021-04-17 10:10:08 +0900 117)
cf9a566c2c06a (Christoph Hellwig 2019-06-13 09:08:58 +0200 118) config BINFMT_FLAT_OLD
cf9a566c2c06a (Christoph Hellwig 2019-06-13 09:08:58 +0200 119) bool "Enable support for very old legacy flat binaries"
cf9a566c2c06a (Christoph Hellwig 2019-06-13 09:08:58 +0200 120) depends on BINFMT_FLAT
cf9a566c2c06a (Christoph Hellwig 2019-06-13 09:08:58 +0200 121) help
cf9a566c2c06a (Christoph Hellwig 2019-06-13 09:08:58 +0200 122) Support decade old uClinux FLAT format binaries. Unless you know
cf9a566c2c06a (Christoph Hellwig 2019-06-13 09:08:58 +0200 123) you have some of those say N here.
cf9a566c2c06a (Christoph Hellwig 2019-06-13 09:08:58 +0200 124)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 125) config BINFMT_ZFLAT
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 126) bool "Enable ZFLAT support"
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 127) depends on BINFMT_FLAT
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 128) select ZLIB_INFLATE
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 129) help
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 130) Support FLAT format compressed binaries
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 131)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 132) config BINFMT_SHARED_FLAT
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 133) bool "Enable shared FLAT support"
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 134) depends on BINFMT_FLAT
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 135) help
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 136) Support FLAT shared libraries
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 137)
e17c6d56160e4 (David Woodhouse 2008-06-17 12:19:34 +0100 138) config HAVE_AOUT
e17c6d56160e4 (David Woodhouse 2008-06-17 12:19:34 +0100 139) def_bool n
e17c6d56160e4 (David Woodhouse 2008-06-17 12:19:34 +0100 140)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 141) config BINFMT_AOUT
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 142) tristate "Kernel support for a.out and ECOFF binaries"
e17c6d56160e4 (David Woodhouse 2008-06-17 12:19:34 +0100 143) depends on HAVE_AOUT
a7f7f6248d974 (Masahiro Yamada 2020-06-14 01:50:22 +0900 144) help
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 145) A.out (Assembler.OUTput) is a set of formats for libraries and
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 146) executables used in the earliest versions of UNIX. Linux used
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 147) the a.out formats QMAGIC and ZMAGIC until they were replaced
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 148) with the ELF format.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 149)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 150) The conversion to ELF started in 1995. This option is primarily
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 151) provided for historical interest and for the benefit of those
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 152) who need to run binaries from that era.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 153)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 154) Most people should answer N here. If you think you may have
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 155) occasional use for this format, enable module support above
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 156) and answer M here to compile this support as a module called
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 157) binfmt_aout.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 158)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 159) If any crucial components of your system (such as /sbin/init
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 160) or /lib/ld.so) are still in a.out format, you will have to
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 161) say Y here.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 162)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 163) config OSF4_COMPAT
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 164) bool "OSF/1 v4 readv/writev compatibility"
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 165) depends on ALPHA && BINFMT_AOUT
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 166) help
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 167) Say Y if you are using OSF/1 binaries (like Netscape and Acrobat)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 168) with v4 shared libraries freely available from Compaq. If you're
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 169) going to use shared libraries from Tru64 version 5.0 or later, say N.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 170)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 171) config BINFMT_EM86
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 172) tristate "Kernel support for Linux/Intel ELF binaries"
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 173) depends on ALPHA
a7f7f6248d974 (Masahiro Yamada 2020-06-14 01:50:22 +0900 174) help
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 175) Say Y here if you want to be able to execute Linux/Intel ELF
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 176) binaries just like native Alpha binaries on your Alpha machine. For
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 177) this to work, you need to have the emulator /usr/bin/em86 in place.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 178)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 179) You can get the same functionality by saying N here and saying Y to
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 180) "Kernel support for MISC binaries".
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 181)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 182) You may answer M to compile the emulation support as a module and
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 183) later load the module when you want to use a Linux/Intel binary. The
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 184) module will be called binfmt_em86. If unsure, say Y.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 185)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 186) config BINFMT_MISC
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 187) tristate "Kernel support for MISC binaries"
a7f7f6248d974 (Masahiro Yamada 2020-06-14 01:50:22 +0900 188) help
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 189) If you say Y here, it will be possible to plug wrapper-driven binary
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 190) formats into the kernel. You will like this especially when you use
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 191) programs that need an interpreter to run like Java, Python, .NET or
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 192) Emacs-Lisp. It's also useful if you often run DOS executables under
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 193) the Linux DOS emulator DOSEMU (read the DOSEMU-HOWTO, available from
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 194) <http://www.tldp.org/docs.html#howto>). Once you have
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 195) registered such a binary class with the kernel, you can start one of
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 196) those programs simply by typing in its name at a shell prompt; Linux
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 197) will automatically feed it to the correct interpreter.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 198)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 199) You can do other nice things, too. Read the file
34962fb8070cb (Mauro Carvalho Chehab 2018-05-08 15:14:57 -0300 200) <file:Documentation/admin-guide/binfmt-misc.rst> to learn how to use this
8c27ceff3604b (Mauro Carvalho Chehab 2016-10-18 10:12:27 -0200 201) feature, <file:Documentation/admin-guide/java.rst> for information about how
8c27ceff3604b (Mauro Carvalho Chehab 2016-10-18 10:12:27 -0200 202) to include Java support. and <file:Documentation/admin-guide/mono.rst> for
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 203) information about how to include Mono-based .NET support.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 204)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 205) To use binfmt_misc, you will need to mount it:
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 206) mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 207)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 208) You may say M here for module support and later load the module when
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 209) you have use for it; the module is called binfmt_misc. If you
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 210) don't know what to answer at this point, say Y.
046d662f48183 (Alex Kelly 2012-10-04 17:15:23 -0700 211)
046d662f48183 (Alex Kelly 2012-10-04 17:15:23 -0700 212) config COREDUMP
046d662f48183 (Alex Kelly 2012-10-04 17:15:23 -0700 213) bool "Enable core dump support" if EXPERT
046d662f48183 (Alex Kelly 2012-10-04 17:15:23 -0700 214) default y
046d662f48183 (Alex Kelly 2012-10-04 17:15:23 -0700 215) help
046d662f48183 (Alex Kelly 2012-10-04 17:15:23 -0700 216) This option enables support for performing core dumps. You almost
046d662f48183 (Alex Kelly 2012-10-04 17:15:23 -0700 217) certainly want to say Y here. Not necessary on systems that never
046d662f48183 (Alex Kelly 2012-10-04 17:15:23 -0700 218) need debugging or only ever run flawless code.
006477f40d2e7 (Christoph Hellwig 2018-07-31 13:39:34 +0200 219)
006477f40d2e7 (Christoph Hellwig 2018-07-31 13:39:34 +0200 220) endmenu