readelf -S输出中的ES,Lk,Inf和Al列标题是什么意思? [英] What is the meaning of the ES, Lk, Inf and Al column headers in the output of readelf -S?

查看:249
本文介绍了readelf -S输出中的ES,Lk,Inf和Al列标题是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

readelf -S 的结果中,我想知道什么列标题 ES Lk Inf Al 均值。

In the outupt of readelf -S, I'd like to know what the column headers ES, Lk, Inf and Al mean.

例如:

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .text             PROGBITS        00000000 000034 00000d 00  AX  0   0  4
  [ 2] .rel.text         REL             00000000 000394 000008 08     10   1  4
  [ 3] .data             PROGBITS        00000000 000044 000000 00  WA  0   0  4
[...]


推荐答案


我想知道列标题ES,Lk,Inf和Al

I'd like to know what the column headers ES, Lk, Inf and Al

查看/usr/include/elf.h中的Elf32_Shdr定义。您会看到类似这样的内容:

Look in /usr/include/elf.h, for definition of Elf32_Shdr. You'll see something like this:

typedef struct
{
  Elf32_Word    sh_name;                /* Section name (string tbl index) */
  Elf32_Word    sh_type;                /* Section type */
  Elf32_Word    sh_flags;               /* Section flags */
  Elf32_Addr    sh_addr;                /* Section virtual addr at execution */
  Elf32_Off     sh_offset;              /* Section file offset */
  Elf32_Word    sh_size;                /* Section size in bytes */
  Elf32_Word    sh_link;                /* Link to another section */
  Elf32_Word    sh_info;                /* Additional section information */
  Elf32_Word    sh_addralign;           /* Section alignment */
  Elf32_Word    sh_entsize;             /* Entry size if section holds table */
} Elf32_Shdr;

因此,一个合理的猜测是: ES == sh_entsize Lk == sh_link Inf == sh_info Al == sh_addalign

So, a reasonable guess would be: ES == sh_entsize, Lk == sh_link, Inf == sh_info and Al == sh_addalign.

这篇关于readelf -S输出中的ES,Lk,Inf和Al列标题是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆