ICode9

精准搜索请尝试: 精确搜索
首页?>?系统相关> 文章详细

Linux上的可执行格式列表

2019-10-08 21:01:26??阅读:569??来源: 互联网

标签:linux?format?elf?executable


我在哪里可以找到Linux系统上已批准/支持的可执行格式列表?我期待找到一个包含ELF,Shebang,a.out等的列表.
我已经知道我可以在/ proc / sys / fs / binfmt_misc中找到用户添加支持格式的列表,但我希望在系统中看到内置格式.我在哪里可以得到它?

解决方法:

内核配置文件有一个名为Executable files formats / Emulations的部分.例如,在某些Linux发行版(如Fedora)上,该文件名为/ boot / config-`uname -r`.

3.14.12 x86(64位)的一些可用选项是:

> CONFIG_BINFMT_ELF
> CONFIG_BINFMT_SCRIPT

Say Y here if you want to execute interpreted scripts starting with
#! followed by the path to an interpreter.

> CONFIG_IA32_EMULATION

Include code to run legacy 32-bit programs under a 64-bit kernel.

> CONFIG_IA32_AOUT

Support old a.out binaries in the 32bit emulation.

> CONFIG_X86_X32

Include code to run binaries for the x32 native 32-bit ABI for
64-bit processors. An x32 process gets access to the full 64-bit
register file and wide data path while leaving pointers at 32
bits for smaller memory footprint.

kernel-3.14.1-200.fc20.x86_64附带此配置:

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,format,elf,executable

专注分享技术,共同学习,共同进步。侵权联系[admin#icode9.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有