file-format - PEI 格式是什么?

标签 file-format portable-executable executable-format

我知道PE是COFF的修改版,PE+是PE的64位支持的修改版,但是PEI是什么?我说 PE 和 PEI 之间没有区别并且它们可以互换使用是否正确?

最佳答案

"The sole difference between the pe format and the pei format is that the latter has an MSDOS 2.0 .exe header on the front that prints the message "This app must be run under Windows." (or some such). (FIXME: Whether that statement is really true or not is unknown. Are there more subtle differences between pe and pei formats? For now assume there aren't. If you find one, then for God sakes document it here!)

The Microsoft docs use the word "image" instead of "executable" because the former can also refer to a DLL (shared library). Confusion can arise because the i' inpei' also refers to "image". The `pe' format can also create images (i.e. executables), it's just that to run on a win32 system you need to use the pei format."



来源 :

http://www.opensource.apple.com/source/gdb/gdb-1515/src/bfd/libpei.h

关于file-format - PEI 格式是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27847741/

相关文章:

linux - 文件转换和从 Linux 中的文件中删除特殊字符

c++ - 如果使用 LoadLibrary 显式链接 dll,则列出从 PE 文件导入的函数

x86 - 将 PE 加载到内存中进行仿真

java - 用于在 Java 或 C++ 中生成独立 Windows 可执行文件的库

compilation - 什么是 RVA 和 VA?

hex - 为什么PE文件中的MZ DOS Header Signature是0x54AD?

encryption - 如何打开 .txt.enc 文件?

database - 计分/存储板球比赛

c++ - 如何解决转发的 WinAPI 的循环依赖?

file-format - GNAT-GVD : not in executable format: File format not recognized