Questions tagged [coff]

COFF (Common Object File Format) is a file format for files containing machine code.

COFF is a file format originally used by early Unix systems for program objects and shared libraries. COFF has been largely superseded by ELF on modern unix-like systems.

COFF is in use in the Windows family of operating systems, in the form of the Windows™ Portable Executable format. It is also used in some embedded development environments.

101 questions
2
votes
2 answers

Understanding Executable code generated by MASM assembler

I have been trying to understand the object code and the exe file generated by the MASM assembler , but some parts are still blurry for me, I hope someone can really help me in understanding the same. So i have a very simple MASM…
TheSYNcoder
  • 123
  • 1
  • 9
2
votes
0 answers

Can't find AddressOfEntryPoint in notpad.exe PE Header

I'm reading the Advanced .NET Debugging book, the book is referencing 32-bit notepad.exe and says that I should be able to find the AddressOfEntryPoint at offset 0x108 which should have an RVA of 0x31F8. I'm using 64 bit Windows 10 and it doesn't…
BanksySan
  • 27,362
  • 33
  • 117
  • 216
2
votes
2 answers

What does xdata section do?

I have a simple hello world program and after i dumpbin it with /headers flag, i get this output: FILE HEADER VALUES 8664 machine (x64) D number of sections 5A3D287F time date stamp Fri Dec 22 18:45:03 2017 …
Tracy
  • 59
  • 1
  • 8
2
votes
2 answers

What is use of creating many executable file formats?

I am learning operating system concepts. I have managed to create a boot loader myself. Every executable file I generated was in BIN. I saw Microsoft used PE file format for its system. Similarly Unix used COFF. What is the use of these multiple…
2
votes
4 answers

Microchip PIC C18 Programming File Format .COFF vs .HEX

I am developing code in the MPLAB IDE and I was wondering if it is better to program a chip using the .COFF or .HEX file generated by the compiler. I'm not sure what the difference is between the two and I am assuming they will both perform the same…
MSumulong
  • 1,061
  • 2
  • 12
  • 22
2
votes
1 answer

Interpret COMDAT symbol of COFF file as human readable function signature

I want to interpret COMDAT symbol of COFF file The COMDAT symbol is ?make@DNameStatusNode@@SAPAV1@W4DNameStatus@@@Z How can I interpret it as (public: static class DNameStatusNode * __cdecl DNameStatusNode::make(enum DNameStatus)) Thanks.
Fleev
  • 77
  • 8
2
votes
1 answer

Determine physical file address of directory RVA in PE file

How can I determine the image address (byte offset in file) of a particular data directory in a PE file? For example, given data directories as follows: directory 1 RVA: 0x0 Size: 0 directory 2 RVA: 0xaf974 Size: 300 directory 3 RVA: 0xb8000…
Tyler Durden
  • 11,156
  • 9
  • 64
  • 126
2
votes
1 answer

How can I read function code from a COFF object file?

I have read the PE and COFF specification, Matt Pietrek's "Peering Inside the PE: A Tour of the Win32 Portable Executable File Format" and "An In-Depth Look into the Win32 Portable Executable File Format" and also several other sources about the…
AndiNo
  • 95
  • 1
  • 6
2
votes
3 answers

PE/COFF file extensions

On Windows, some binary files e.g. .obj are in COFF format, and others e.g. .exe and .dll are PE, which is COFF with an extra header. It seems you need to look at the file extension to know which to expect. Is there a comprehensive list of which…
rwallace
  • 31,405
  • 40
  • 123
  • 242
2
votes
1 answer

How to make COFF from obj file compiled with /GL option?

I've got a 3d party static library built with some older version of MSVC, and I successfully link it to my application in MSVC10 (VisualStudio2010). Now I upgraded to MSVC11, and I'm unable to link it: 2>LINK : fatal error C1047: The object or…
Igor R.
  • 14,716
  • 2
  • 49
  • 83
2
votes
1 answer

"Microsoft Resource File to COFF Object Conversion Utility has stopped working" error when compiling

For reasons that are unknown to me, I have recently been getting an error when compiling my C# applications that simply states "Microsoft Resource File to COFF Object Conversion Utility has stopped working". In the error list, there always appears…
Jc Gurango
  • 61
  • 2
  • 4
2
votes
2 answers

Any library to manipulate COFF files?

Is there any library that allows to read, modify and write COFF files?
fithu
  • 2,361
  • 5
  • 18
  • 23
1
vote
0 answers

unable to find jvcore.bpi when linking

I use C++Builder (RAD Studio Professional). I have tried installing the JEDI libraries, both though GetIt and GitHub, both giving the same result: "file not found". I tried searching for the file in the system, and found it in the installation…
Chris Kay
  • 61
  • 4
1
vote
1 answer

COFF symbol table vs import/export/debug section

As far as I have understood, COFF symbol table in the Microsoft's Portable Executable format is used to store the export, import and the debug symbols. But as we already have a .edata, .idata and .debug section for the purpose why do we need another…
sraok
  • 595
  • 6
  • 23
1
vote
0 answers

What is the msvc .obj (COFF?) file format when using cl.exe with the /GL option?

According to msdn (https://learn.microsoft.com/en-us/cpp/build/reference/gl-whole-program-optimization?view=msvc-160&viewFallbackFrom=vs-2019) .obj files produced with /GL will not be available to such linker utilities as EDITBIN and DUMPBIN. Is…
Nicolás Abram
  • 333
  • 3
  • 12