I m debugging php。 在寻找我知道地址点的记忆地点时,我看到点名——例如22810408(0x08048122)——这是在使用CLI版本(php)时。
HOWEVER, when I m using apache2 and attempting to do the same thing, I don t see a pointer to the real address. Instead, I see an offset from the ELF header that when added to the address of the ELF header, gives me the "real" address. For example, if the "real" address was 0x08048122, and the ELF header was at 0x08048000 then I would see 22010000 (0x122) at this same position.
当我试图勾画“真实的”地址时,问题就会出现。 所谓“real”地址是0xbfccxx,但在增加我发现的ELF负责人人数时,事情只会增加! 我拿到所有错误的地址。
我已经尝试了很长一段时间,但我确实不相信如何正确表达这一看法,或寻找什么。
So, what I m essentially looking for is more information on WHY Apache has an offset instead of a real memory address, and how this all relates to addresses on the stack. Could anyone give me any pointers to material that might clarify?