【发布时间】:2015-07-20 15:43:48
【问题描述】:
我正在准备考试,我有以下问题: 在 ELF 头中,据说文件的入口点在 0x8049058
代码是:
section .data
x: dd 3
_start: mov ecx, [x]
...
...
... ;more code
问:x 在运行时的虚拟地址是什么?
正确答案是0x0849054
有人可以解释一下吗? 如果 x 如下所示,它仍然在同一个地址吗?
section .bss
x: resb 4
section .data
_start: mov ecx, [x]
...
...
... ;more code
入口点“带走”我在哪里? 以及靠近它的部分是什么?
【问题讨论】:
标签: assembly architecture elf virtual-address-space