ELF stands for Executable and Linking Format

ELF stands for Executable and Linking Format

在linux命令行下输入 如下命令

$ file /bin/ls

/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

这里的ELF 32-bit 说明你的cpu是32位,如果是64-bit就说明是64位的cpu

ELF stands for Executable and Linking Format. This format is used for object files on most UNIX platforms including Linux. There are basically three types of object files:

  1. A relocatable file holds code and data suitable to be linked with other object fields to create an executable or shared object file, or another relocatable object.
  2. An executable file holds a program that is ready to execute.
  3. A shared object file holds code and data suitable to be linked to other shared objects or relocatable files. (The object file format is shown in the figure below.)

 

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>