加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

关于Windows中PE的切入点

发布时间:2020-12-14 01:48:09 所属栏目:Windows 来源:网络整理
导读:它总是在代码段的最低地址吗? 不,不一定. PE入口点在 IMAGE_OPTIONAL_HEADER结构中的AddressOfEntryPoint字段中定义: A pointer to the entry point function,relative to the image base address. For executable files,this is the starting address. Fo
它总是在代码段的最低地址吗?
不,不一定. PE入口点在 IMAGE_OPTIONAL_HEADER结构中的AddressOfEntryPoint字段中定义:

A pointer to the entry point function,relative to the image base address. For executable files,this is the starting address. For device drivers,this is the address of the initialization function. The entry point function is optional for DLLs. When no entry point is present,this member is zero.

链接器可以将其设置为它想要的任何值,只要它是PE的有效相对虚拟偏移量即可.一些编译器和链接器可能具有将入口点放在文本/代码部分开头的约定,但是它没有OS或PE格式要求.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读