Auto-sync: 2026-04-17 08:37
This commit is contained in:
29
wiki/concepts/ELF.md
Normal file
29
wiki/concepts/ELF.md
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
title: "ELF"
|
||||
type: concept
|
||||
tags: [linux, 可执行文件, 格式]
|
||||
date: 2026-04-16
|
||||
---
|
||||
|
||||
## Definition
|
||||
ELF(Executable and Linkable Format,可执行和链接格式)是 Linux 和 Unix 系统的标准可执行文件格式。
|
||||
|
||||
## Full Name
|
||||
Executable and Linkable Format
|
||||
|
||||
## Key Characteristics
|
||||
- 跨平台:Linux、FreeBSD、Solaris 等多种系统使用
|
||||
- 支持多种文件类型:可执行文件(.exe)、共享对象(.so)、核心转储文件(core)
|
||||
- 包含元数据:程序入口、段表、符号表等
|
||||
|
||||
## Usage
|
||||
检测可执行文件架构:
|
||||
```bash
|
||||
file /bin/bash
|
||||
# 输出示例:ELF 64-bit LSB executable, x86-64
|
||||
# 或:ELF 64-bit LSB executable, ARM aarch64
|
||||
```
|
||||
|
||||
## Related Concepts
|
||||
- [[x86_64]]:64 位 x86 架构可执行文件
|
||||
- [[ARM64]]:64 位 ARM 架构可执行文件
|
||||
Reference in New Issue
Block a user