Mail Archives: djgpp/1997/02/26/16:14:18
Mark T Logan wrote:
>
> I just downloaded nasm, and even though I haven't
> had a chance to test it out yet, I am fairly impressed.
> I have a question about the disassembler. It claims
> to only be able to disassemble a straight binary file,
> no COFF, of ELF formats. How can I translate GCC
> output (COFF) to simple binary?
IMO, I think it would be better to modify the disassemble to handle coff
and elf (I could help you with the coff format, and DJ has (or at least
had) an exelent coff reference on his web site). From my look at the
disassembler source, it's only the main() function (or a function
slightly deeper, can't remember) that is file dependent. The code that
atually does the disassembling work on ONE instruction at a time,
allowing for much more sophisticated disassmeblers.
I beleive nasm's disassembler program is only a demo, not a real tool.
Bill
--
Leave others their otherness.
- Raw text -