Executable file formats

Kernel support for ELF binaries

ELF (Executable and Linkable Format) is a format for libraries and executables used across different architectures and operating systems. Saying Y here will enable your kernel to run ELF binaries and enlarge it by about 13 KB. ELF support under Linux has now all but replaced the traditional Linux a.out formats (QMAGIC and ZMAGIC) because it is portable (this does *not* mean that you will be able to run executables from different architectures or operating systems however) and makes building run-time libraries very easy. Many new executables are distributed solely in ELF format. You definitely want to say Y here.

Information about ELF is contained in the ELF HOWTO available from <http://www.tldp.org/docs.html#howto>.

If you find that after upgrading from Linux kernel 1.2 and saying Y here, you still can’t run any ELF binaries (they just crash), then you’ll have to install the newest ELF runtime libraries, including ld.so (check the file <file:Documentation/Changes> for location and latest version).

ELF (Executable and Linkable Format) это формат исполняемых файлов и библиотек, используемый на многих аппаратных платформах и операционных системах.

Включив эту опцию, Вы сможете запускать исполняемые файлы формата ELF. Включение этой опции увеличит размер ядра примерно на 13 Кб.

Данный формат практически полностью заменил традиционный для Linux формат исполняемых файлов a.out, в первую очередь из-за своей переносимости на разные архитектуры (это *не* значит, что Вы сможете запускать программы, скомпилированные для другой аппаратной платформы), а также из-за легкости компиляции и линковки.

Много новых программ распространяются исключительно в этом формате. Вам почти наверняка понадобится включить этот параметр.

Больше информации об ELF можно узнать из ELF-Howto, которое находится по адресу <http://cs.mipt.ru/docs/comp/eng/os/linux/howto/howto_english/elf/elf-howto.html>

Kernel support for a.out amd ECOFF binaries

A.out (Assembler.OUTput) is a set of formats for libraries and executables used in the earliest versions of UNIX. Linux used the a.out formats QMAGIC and ZMAGIC until they were replaced with the ELF format.

The conversion to ELF started in 1995. This option is primarily provided for historical interest and for the benefit of those who need to run binaries from that era.

Most people should answer N here. If you think you may have occasional use for this format, enable module support above and answer M here to compile this support as a module called binfmt_aout.

If any crucial components of your system (such as /sbin/init or /lib/ld.so) are still in a.out format, you will have to say Y here

Поддержка ядром форматов a.out и ECOFF

A.out (Assembler Output) — это набор форматов исполняемых файлов и библиотек используемый в основном в старших версиях операционных систем семейства UNIX. Linux использовал QMAGIC и ZMAGIC разновидности этого формата, пока они не были вытеснены относительно новым форматом ELF.

Перевод Linux на ELF начался в 1995 и уже завершен, поэтому эта опция оставлена для исторического интереса и совместимости со старыми приложениями.

Подавляющему большинству людей эта опция не нужна, поэтому ее можно не включать. Однако, если вы имеете дело с доисторическими приложениями, или вам интересно, то ее можно включить статически или модулем. В случае компиляции модулем модуль будет называться binfmt_aout.

Kernel support for MISC binaries

If you say Y here, it will be possible to plug wrapper-driven binary formats into the kernel. You will like this especially when you use programs that need an interpreter to run like Java, Python, .NET or Emacs-Lisp. It’s also useful if you often run DOS executables under the Linux DOS emulator DOSEMU (read the DOSEMU-HOWTO, available from <http://www.tldp.org/docs.html#howto>). Once you have registered such a binary class with the kernel, you can start one of those programs simply by typing in its name at a shell prompt; Linux will automatically feed it to the correct interpreter.

You can do other nice things, too. Read the file <file:Documentation/binfmt_misc.txt> to learn how to use this feature, <file:Documentation/java.txt> for information about how to include Java support. and <file:Documentation/mono.txt> for information about how to include Mono-based .NET support.

To use binfmt_misc, you will need to mount it:

mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc

You may say M here for module support and later load the module when you have use for it; the module is called binfmt_misc. If you don’t know what to answer at this point, say Y

Поддержка ядром других форматов исполняемых файлов

Включив эту опцию вы сможете подключать к ядру произвольный интерпретатор исполняемых файлов. Вас особенно заинтересует эта опция если вы часто работаете с исполняемыми файлами типов, отличных от ELF или a.out, например Java, Python, .NET или Emacs-Lisp. Также эта опция может быть использована для прозрачного запуска исполняемых файлов из DOS/Windows, не вызывая эмулятор. После включения этой опции и регистрации данного типа файлов вы сможете напрямую вызывать их из командной строки, а ядро автоматически выполнит необходимый интерпретатор.

Ну и конечно вы можете делать с этой опцией еще пару неплохих трюков. Как именно можно использовать эту опцию вы можете узнать в <file:Documentation/binfmt_misc.txt> (на англ. языке), информацию о запуске Java-приложений можно получить из <file:Documentation/java.txt> (на англ. языке), о .NET в <file:Documentation/mono.txt> (на англ. языке).

Вы можете включить эту опцию статически или модулем. В случае компиляции модулем модуль будет назван binfmt_misc.

Если вы не знаете, что ответить, ответьте Y.