Files
nexus/wiki/concepts/ELF.md
2026-04-17 08:38:12 +08:00

810 B
Raw Blame History

title, type, tags, date
title type tags date
ELF concept
linux
可执行文件
格式
2026-04-16

Definition

ELFExecutable and Linkable Format可执行和链接格式是 Linux 和 Unix 系统的标准可执行文件格式。

Full Name

Executable and Linkable Format

Key Characteristics

  • 跨平台Linux、FreeBSD、Solaris 等多种系统使用
  • 支持多种文件类型:可执行文件(.exe、共享对象.so、核心转储文件core
  • 包含元数据:程序入口、段表、符号表等

Usage

检测可执行文件架构:

file /bin/bash
# 输出示例ELF 64-bit LSB executable, x86-64
# 或ELF 64-bit LSB executable, ARM aarch64
  • x86_6464 位 x86 架构可执行文件
  • ARM6464 位 ARM 架构可执行文件