按序数导出有什么意义?
我可以理解为什么有人想要按序数 only 导出(即使用“NONAME”),这会减少导出表的大小并隐藏 DLL 接口的一些详细信息 但为什么有人会费心按序号和名称导出函数呢?据我所知,这只是允许您在导出表中显式设置序号。
我知道我一定遗漏了一些东西,有人可以填补我吗?
I can see why someone would want to export by ordinalonly (i.e. using 'NONAME'), this would reduce the size of the export table and hide some of the details of your DLL's interface
But why would someone bother exporting a function by ordinal as well as by name? As far as I can see this just allows you to explicitly set the ordinal number in the export table.
I know I must be missing something, can someone fill me in?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
按序数导出是在 Windows 16 上发明的,当时内存非常紧张,计算机速度也慢得多。它使用的内存少得多,并且不需要在运行时进行所有这些字符串比较。 DLL 甚至不一定具有符号信息。
Export by ordinal was invented back on Windows 16 where memory was very tight and computers were a lot slower. It uses a lot less memory and does not require all those string comparisons at runtime. The DLLs didn't necessarily even have the symbolic information.