- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我需要将 64 位 .lib 文件从 COFF
转换为 OMF
。 Coff2Omf.exe
适用于 32 位库但给出...
ERROR: COFF error: FOOx64.lib
(coffread.cpp, 1637) : invalid machine type detected
...在 64 位库上。是否有用于此目的的更新工具或类似工具?
最佳答案
根据 Embarcadero 的文档:
Differences Between Clang-based C++ Compilers and Previous-Generation C++ Compilers
Object and Library File Format
- BCC32 and its associated tools use OMF in .obj and .lib files.
- Clang-based C++ compilers use ELF in .o and .a files.
This difference means, for example, that when you migrate a 32-bit Windows applications you must change references to .lib and .obj files to be .a and .o, respectively.
BCC64.EXE, the C++ 64-bit Windows Compiler
Compiled object file
ELF64 format
Do not specify the file extension (.ext) of modulename, as long as you are using default file types. The linkers assume the following default values for the file extension (.ext) of modulename:
.obj
extension for BCC32.o
extension for:
Clang-based C++ compilers
BCCOSXSo if you omit the
.ext
, then the correct extension is automatically used according to your current target platform.
OMF 仅供 32 位编译器/链接器使用。 64 位编译器/链接器改用 ELF64。
关于static-libraries - 如何将 64 位 COFF 转换为 OMF?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31095280/
我正在阅读 COFF 文件格式,它通常用于创建可执行文件格式(它也有一些变体)。 在阅读时,我遇到了格式的重定位部分。此重定位部分如何用于创建可执行文件。 如果您向我指出一些对我有帮助的链接,那将非常
我已阅读 PE and COFF specification , Matt Pietrek 的 "Peering Inside the PE: A Tour of the Win32 Portable
在 Windows 上,一些二进制文件,例如.obj 为 COFF 格式,其他如.exe 和.dll 是PE,是COFF,多了一个header。看来您需要查看文件扩展名才能知道期望的是什么。 是否有关
Microsoft 的 PE/COFF 文档提到符号表中的类型字段: “最高有效字节指定该符号是指向 LSB 中指定的基类型的指针、函数返回还是数组。Microsoft 工具仅使用此字段来指示该符号是
通过查看问题标题不要误会我-我知道它们是什么(便携式可执行文件的格式)。但是我的兴趣范围略有不同 我的CONFUSION 我参与了重新托管/重新定向最初来自第三方的应用程序。问题在于,有时目标代码的格
编辑:我在使用 clang 编译器进行测试时犯了一个错误。这与 clang 的预期一致。 Visual Studio 2015 产生了意想不到的结果。我的结论是 Visual Studio 2015
我想在proteus中模拟我做的一个程序,但是它是在linux上使用MPLABX编译的,proteus运行在虚拟机和windows XP中。我的电脑硬件较少,所以尝试在虚拟机上运行 MPLABX 对我
据我了解,Microsoft的Portable Executable格式的COFF符号表用于存储导出、导入和调试符号。但是既然我们已经有了 .edata、.idata 和 .debug 部分,为什么我
在创建最终镜像之前,链接器在解析目标文件中的重定位时究竟采取了哪些步骤?更具体地说,链接器如何处理已存储在重定位站点的值?它是否总是将其添加到最终的 VA/RVA 中,还是有时会被忽略(例如某些重定位
最近我一直在维护一个用 VC++ 6.0 编写的遗留项目。该代码使用了该编译器的许多独特特性,因此将其移植到更新的标准编译器已被证明是一项艰巨的任务。 在项目的数千行代码中,有四个汇编文件。出于某种原
我想知道在这种情况下我是否会得到一个包含原始内容的 .bin 文件某些程序(x86-32)是否可以使用某些工具进行转换(或者如果可能的话)到一些可链接的目标文件(如 coff)我可以链接和使用(例如使
我正在链接许多第 3 方 .lib 文件,并且在链接时收到大量 LNK4099 警告。看来这个警告消息无法抑制,所以我相信如果我从 .lib 文件中删除所有调试信息,则不会显示警告。有没有办法删除调试
我正在尝试使用 Simcore Alpha/Functional Simulator 进行模拟,我需要创建一个图像文件,但它给出了类似“这不是 Coff 可执行文件”的错误我如何从 C 源代码创建可执
有什么方法可以将 COFF 库(lib 文件)转换为 OMF 库以便与 C++Builder6 一起使用?这个 coff 不仅仅是导入库,它包含一些代码。当我尝试使用 borland 的 coff2o
我只知道2: dumpbin 包含在 Visual Studio 中 PE查看自http://wjradburn.com/software/ 最佳答案 有DbgHelp ,但它更适合 PE 文件而不是
我在术语上很少混淆。 A file that is given as input to the linker is called Object File.The linker produces an
我的意思是单个二进制文件可以在 Win32 和 Linux i386 中运行吗? 最佳答案 这是不可能的,因为这两种类型的格式有冲突: PE文件的前两个字符必须是'M' 'Z'; ELF 文件的前四个
我需要将 64 位 .lib 文件从 COFF 转换为 OMF。 Coff2Omf.exe 适用于 32 位库但给出... ERROR: COFF error: FOOx64.lib (coffrea
当我尝试在 VS2010 中构建一个简单的程序时,编译成功,但当我尝试构建解决方案时,它给了我这个错误: LINK : fatal error LNK1123: failure during conv
之后 我安装了VS2012 我的Qt 项目不再编译(我的电脑上有VS2010 和VS2012)。消息:LNK1123:转换为 COFF 期间失败:文件无效或损坏。以前只用VS2010没问题。 对于 V
我是一名优秀的程序员,十分优秀!