coff

Dumpbin output meaning below .dll import part

北城以北 提交于 2021-01-28 11:33:37
问题 Here is a part of what I got when run dumpbin .exe file. Section contains the following imports: KERNEL32.dll 5A71E8 Import Address Table 620468 Import Name Table 0 time date stamp 0 Index of first forwarder reference 458 SetErrorMode 2B9 GlobalFlags 64 CompareStringW 206 GetLocaleInfoW 26E GetSystemDefaultUILanguage 418 RtlUnwind 300 IsDebuggerPresent 304 IsProcessorFeaturePresent B5 CreateThread 11A ExitThread 119 ExitProcess 217 GetModuleHandleExW 2D1 HeapQueryInformation 487 SetStdHandle

Qt Creater error 转换到 COFF 期间失败

谁说我不能喝 提交于 2020-01-07 13:00:04
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> ##版本信息 Qt版本: Qt 5.2.1 MSVC2010 VS版本: visual studio 2010 ##错误信息 :-1: error: LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 解决方案 我的解决方案: 查找是否有两个cvtres.exe 一个是C:\Program Files(x86)\Microsoft Visual Studio 10.0\vc\bin\cvtres.exe 另一个是C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe。 右键属性|详细信息 查看两者版本号,删除/重命名较旧的版本 参考地址: http://bbs.csdn.net/topics/390779834 没有测试过是否可行。 项目\属性\配置属性\清单工具\输入和输出\嵌入清单:原来是“是”,改成“否”。 参考地址: http://bbs.csdn.net/topics/390121452 来源: oschina 链接: https://my.oschina.net/u/274521/blog/337584

How do I assemble GAS assembly and link it with the Open Watcom C library?

限于喜欢 提交于 2019-12-23 08:46:57
问题 I am trying to produce 16-bit DOS executables, but using the gcc compiler. So I am using the ancient gcc-4.3 ia16 port. I made a Docker image of my build: https://registry.hub.docker.com/u/ysangkok/ia16-gcc-rask Here's what I am trying: host $ mkdir results host $ docker run -v $PWD/results:/results -it ysangkok/ia16-gcc-rask container $ cd results I don't include the header, cause gcc can't use OpenWatcom's libc headers. container $ echo 'main() { printf("lol"); }' > test.c I don't link

PE Header Requirements

巧了我就是萌 提交于 2019-12-21 14:09:28
问题 What are the requirements of a PE file (PE/COFF)? What fields should be set, which value, at a bare minimum for enabling it to "run" on Windows (i.e. executing "ret" instruction and then close, without error). The library I am building first is the linker: Now, the problem I have is the PE file (PE/COFF). I don't know what is "required" for a PE file before it can actually execute on my platform. My testing platform is Vista. I get an error message, saying " This is not a valid Win32

PE Header Requirements

て烟熏妆下的殇ゞ 提交于 2019-12-21 14:09:09
问题 What are the requirements of a PE file (PE/COFF)? What fields should be set, which value, at a bare minimum for enabling it to "run" on Windows (i.e. executing "ret" instruction and then close, without error). The library I am building first is the linker: Now, the problem I have is the PE file (PE/COFF). I don't know what is "required" for a PE file before it can actually execute on my platform. My testing platform is Vista. I get an error message, saying " This is not a valid Win32

How to determine the major compiler version from .obj files compiled with /GL?

亡梦爱人 提交于 2019-12-11 03:44:22
问题 I'm trying to determine Visual Studio version (2002/2003, 2005, 2008, 2010, 2012, 2013, 2015) from the .obj file generated with the link time code generation option. The file I have, generated with MSVC2012, has following COFF header contents: File Header +0 00 00 Machine - Unknown Machine +2 FF FF NumberOfSections +4 01 00 4C 01 TimeDateStamp +8 70 94 F9 55 PointerToSymbolTable +12 38 FE B3 0C NumberOfSymbols +16 A5 D9 SizeOfOptionalHeader +18 AB 4D Characteristics Optional Header +20 AC 9B

Disassemble Microsoft Visual Studio 2003 compiler output

為{幸葍}努か 提交于 2019-12-09 06:30:18
问题 I'm seeing what I think is strange behaviour from object files output by the Microsoft Visual Studio 2003 tools. The file utility tells me: asmfile.obj: 80386 COFF executable not stripped - version 30821 For objects created by the assembler, but for objects coming from C files, I get just: cfile.obj: data Using Microsoft's dumpbin utility and the objdump I got from cygwin, I can disassemble the assembly-built file, but I get no useful results from either utility for the C-built files. I have

COFF on Linux or ELF on Windows

余生颓废 提交于 2019-12-09 02:28:02
问题 Is it possible to run the COFF executable files on UNIX or the ELF executable files on Windows? And what would be the steps to be able to run either file type on Windows and UNIX. I'm just curious. 回答1: To actually run executables and have them do useful stuff, you need to worry about the API, not just the executable file format. On a Linux machine with WINE installed, you can run Windows .EXE files from the command line and they do the same thing that they do on Windows. The other way around

Linker error “contains invalid OMF record”

吃可爱长大的小学妹 提交于 2019-12-07 13:18:31
问题 In C++ Builder when I compile I get [ilink32 Error] Error: 'C:\PATH\TO\A\LIB\INCLUDED\IN\THE\PROJECT\ALIBRARY.LIB' contains invalid OMF record, type 0x21 (possibly COFF) When I convert .lib with utilities coff2omf , new lib looses significant functions. 回答1: C++Builder cannot use .lib files from other compilers, only its own. If the .lib file is an import lib for a DLL, use C++Builder's command-line IMPLIB tool to create a new .lib file from the DLL directly. If the .lib file is a static

Names of PE directories

北城以北 提交于 2019-12-07 10:58:59
问题 I'm working on a PE dissector and came across something rather unusual. The names and order of directories in the PE format seem to differ depending on where you look: From PEReader (perdr): #define IMAGE_DIRECTORY_ENTRY_EXPORT 0 // Export Directory #define IMAGE_DIRECTORY_ENTRY_IMPORT 1 // Import Directory #define IMAGE_DIRECTORY_ENTRY_RESOURCE 2 // Resource Directory #define IMAGE_DIRECTORY_ENTRY_EXCEPTION 3 // Exception Directory #define IMAGE_DIRECTORY_ENTRY_SECURITY 4 // Security