mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-09-21 11:53:35 +08:00
elf文件格式...
This commit is contained in:
@@ -281,7 +281,27 @@ out:
|
||||
|
||||
可以使用readelf -l查看program headers, 其中的INTERP段标识了我们程序所需要的解释器
|
||||
|
||||

|
||||
```c
|
||||
readelf -l testelf_normal
|
||||
```
|
||||
|
||||

|
||||
|
||||
```c
|
||||
readelf -l testelf_dynamic
|
||||
```
|
||||
|
||||

|
||||
|
||||
```c
|
||||
readelf -l test_static
|
||||
```
|
||||

|
||||
|
||||
我们可以看到testelf_normal和testelf_dynamic都是动态链接的需要解释器
|
||||
|
||||
而testelf_static则是静态链接的不需要解释器
|
||||
|
||||
|
||||
##检查并读取解释器的程序表头
|
||||
-------
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 171 KiB |
|
Before Width: | Height: | Size: 164 KiB After Width: | Height: | Size: 164 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 83 KiB |
Reference in New Issue
Block a user