elf - shstrtable 在哪个段中?
问题描述
我正在使用 elf64 文件,我想知道两件事,第一是 shstrtable 存储在哪个段中,因为没有出现查看 readelf -l 。另一个问题(来自第一个问题)一个部分是否可能不在一个部分内?
我还注意到某些细分市场之间存在一些“差距”。这些缝隙里面是什么?
我正在使用以下示例,即 hello_world.c:
readelf -lW hello
El tipo del fichero elf es DYN (Fichero objeto compartido)
Entry point 0x1040
There are 11 program headers, starting at offset 64
Encabezados de Programa:
Tipo Desplaz DirVirt DirFísica TamFich TamMem Opt Alin
PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x000268 0x000268 R 0x8
INTERP 0x0002a8 0x00000000000002a8 0x00000000000002a8 0x00001c 0x00001c R 0x1
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x000560 0x000560 R 0x1000
LOAD 0x001000 0x0000000000001000 0x0000000000001000 0x0001e5 0x0001e5 R E 0x1000
LOAD 0x002000 0x0000000000002000 0x0000000000002000 0x000118 0x000118 R 0x1000
LOAD 0x002de8 0x0000000000003de8 0x0000000000003de8 0x000248 0x000250 RW 0x1000
DYNAMIC 0x002df8 0x0000000000003df8 0x0000000000003df8 0x0001e0 0x0001e0 RW 0x8
NOTE 0x0002c4 0x00000000000002c4 0x00000000000002c4 0x000044 0x000044 R 0x4
GNU_EH_FRAME 0x00200c 0x000000000000200c 0x000000000000200c 0x000034 0x000034 R 0x4
GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10
GNU_RELRO 0x002de8 0x0000000000003de8 0x0000000000003de8 0x000218 0x000218 R 0x1
mapeo de Sección a Segmento:
Segmento Secciones...
00
01 .interp
02 .interp .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt
03 .init .plt .text .fini
04 .rodata .eh_frame_hdr .eh_frame
05 .init_array .fini_array .dynamic .got .got.plt .data .bss
06 .dynamic
07 .note.gnu.build-id .note.ABI-tag
08 .eh_frame_hdr
09
10 .init_array .fini_array .dynamic .got
解决方案
推荐阅读
- javascript - 如何重构此代码以使图像文件显示在浏览器上?
- google-chrome - Chrome 扩展:如何监听启用/重新启用的事件
- microsoft-graph-api - 尝试使用 Microsoft 图形 API 将应用程序发布到目录时出现“上下文为空或 TenantId 为空或 UserId 为空”
- c++ - 向量下标超出函数范围
- java - 2 名玩家之间的骰子游戏,最高得分为 50
- bash - 分配bash变量时base64解码失败?
- .htaccess - 如何使用 .htaccess 将 https://www.example.com 重定向到 https://example.com?
- thymeleaf - 百里香片段未解决
- github - Jekyll 从生成的 URL 中删除 Github 用户名和 repo 名
- java - 问题 HQL JAVA 休眠