Hello Is there any way to convert COFF library (lib file) to OMF library for using with C++Builder6 ? This coff is not just import library, it conatians some code. When I try to convert it using borland's coff2omf.exe, I get 1KB file from 15KB file.
+2
A:
It's fairly typical for an OMF object file to be a lot smaller than an equivalent COFF object, so what you're getting may well be valid.
If you find that it's really not, you can probably break the lib file into individual object files, disassemble the object files, re-assemble them to OMF object files, and put those together into an OMF lib file.
Jerry Coffin
2010-06-24 22:24:34
Thank you for your answer.Can you recommend me tools which I can use to disassemble COFF obj files and then re-assembler them to OMF obj files?
smsrecv
2010-06-25 14:09:38
Assuming you're running on Windows, you can disassemble a COFF object with `dumpbin /disasm the_file.obj`. That produces output that's sort of ready for MASM, though you'll have to strip off some extra columns it throws in. If you don't mind spending some money, *IDA Pro* will produce results ready to feed to MASM directly. Either way, I'd probably do the assembling with MASM.
Jerry Coffin
2010-06-25 14:24:36