Linux上的可执行格式列表 [英] List of executable formats on Linux
问题描述
在哪里可以找到Linux系统上批准/支持的可执行格式的列表?我希望找到一个包含 ELF , Shebang , a.out 等的列表.
我已经知道可以在/proc/sys/fs/binfmt_misc
中找到用户添加的受支持格式的列表,但是我想查看系统中的内置格式.我在哪里可以得到?
Where do I find the list of approved/supported executable formats on my Linux system? I am expecting to find a list that contains ELF, Shebang, a.out etc.
I already know that I can find in /proc/sys/fs/binfmt_misc
a list of user added supported formats, but I want to see the built-in formats in the system. Where can I get that?
推荐答案
内核配置文件包含名为可执行文件格式/仿真的部分.例如,在某些Linux发行版(例如Fedora)上,该文件名为/boot/config-`uname -r` .
The kernel configuration file has a section named Executable file formats / Emulations. The file is named /boot/config-`uname -r` on some Linux distributions like Fedora for example.
Some of the available options for 3.14.12 x86 (64 bit) are:
如果要执行以以下内容开头的解释脚本,请在此处说Y #!然后是到达解释器的路径.
Say Y here if you want to execute interpreted scripts starting with #! followed by the path to an interpreter.
包括在64位内核下运行旧版32位程序的代码.
Include code to run legacy 32-bit programs under a 64-bit kernel.
kernel-3.14.1-200.fc20.x86_64带有以下配置:
kernel-3.14.1-200.fc20.x86_64 comes with this configuration:
CONFIG_BINFMT_ELF=y
CONFIG_COMPAT_BINFMT_ELF=y
CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y
CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
CONFIG_BINFMT_SCRIPT=y
# CONFIG_HAVE_AOUT is not set
CONFIG_BINFMT_MISC=m
CONFIG_COREDUMP=y
CONFIG_IA32_EMULATION=y
# CONFIG_IA32_AOUT is not set
# CONFIG_X86_X32 is not set
这篇关于Linux上的可执行格式列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!