小编use*_*413的帖子

如何找到elf文件的节头字符串表的偏移量?

我必须编写一个打印ELF文件的C程序.我无法弄清楚节头字符串表的位置.

假设我有一个文件,它给了我以下输出:

readelf -h

ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              REL (Relocatable file)  
  Machine:                           Intel 80386
  Version:                           0x1
  Entry point address:               0x0
  Start of program headers:          0 (bytes into file)
  Start of section headers:          17636 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of …
Run Code Online (Sandbox Code Playgroud)

c linux elf

8
推荐指数
2
解决办法
2万
查看次数

标签 统计

c ×1

elf ×1

linux ×1