Date: Thu, 27 Feb 1997 18:47:25 +0200 (IST) From: Eli Zaretskii To: Bill Currie cc: djgpp AT delorie DOT com Subject: Re: nasm disassembler In-Reply-To: <33155C35.2761@blackmagic.tait.co.nz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 27 Feb 1997, Bill Currie 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). Why reinvent the wheel? Isn't `objdump' enough for disassembly? Another possibility is to load the COFF executable (if it's a linked program, not a single object file) into gdb or RHIDE and use its `disassemble' command.