xp下用户程序空间分配(4):加载主程序
0 entry point (0045BB60) _mainCRTStartup 1000 base of code 5D000 base of data 400000 image base (00400000 to 0046EFFF) 1000 section alignment 200 file alignment 5.00 operating system version 0.00 image version 5.00 subsystem version 0 Win32 version 6F000 size of image 400 size of headers 6F1FE checksum 3 subsystem (Windows CUI) 8140 DLL characteristics Dynamic base NX compatible Terminal Server Aware 100000 size of stack reserve 1000 size of stack commit 100000 size of heap reserve 1000 size of heap commit 0 loader flags 10 number of directories 0 [ 0] RVA [size] of Export Directory 63354 [ 78] RVA [size] of Import Directory 68000 [ 2B4] RVA [size] of Resource Directory 0 [ 0] RVA [size] of Exception Directory 0 [ 0] RVA [size] of Certificates Directory 69000 [ 5844] RVA [size] of Base Relocation Directory 5D2E0 [ 1C] RVA [size] of Debug Directory 0 [ 0] RVA [size] of Architecture Directory 0 [ 0] RVA [size] of Global Pointer Directory 0 [ 0] RVA [size] of Thread Storage Directory 62EE0 [ 40] RVA [size] of Load Configuration Directory 0 [ 0] RVA [size] of Bound Import Directory 5D000 [ 2C0] RVA [size] of Import Address Table Directory 0 [ 0] RVA [size] of Delay Import Directory 0 [ 0] RVA [size] of COM Descriptor Directory 0 [ 0] RVA [size] of Reserved Directory 1.2 代码段 先看看从bash.exe里面dump出来的信息:
它请求的地 址是0x0040 1000,看看在内存里的section head: 下面是windows为这个段分配的内存块: 显然windows是满足文件的请求了。 再比较dump出来的代码段的原始数据和内存里的数据:
可以发现它们的内容是一致的。 在vs2008里面可以看到这段代码反汇编的结果:
|
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |