gpt4 book ai didi

elf - readelf -S 的输出中 ES、Lk、Inf 和 A​​l 列标题的含义是什么?

转载 作者:行者123 更新时间:2023-12-05 01:19:24 26 4
gpt4 key购买 nike

readelf -S 的输出中,我想知道列标题是什么ES , Lk , InfAl意思。

例如:

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
[...]

最佳答案

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



查看/usr/include/elf.h,了解 Elf32_Shdr 的定义。你会看到这样的东西:
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_infoAl == sh_addalign .

关于elf - readelf -S 的输出中 ES、Lk、Inf 和 A​​l 列标题的含义是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15862288/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com