From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 12 20:04:12 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E96B37B401; Tue, 12 Aug 2003 20:04:12 -0700 (PDT) Received: from HAL9000.homeunix.com (ip114.bella-vista.sfo.interquest.net [66.199.86.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6768F43FA3; Tue, 12 Aug 2003 20:04:11 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.9/8.12.9) with ESMTP id h7D345jX057702; Tue, 12 Aug 2003 20:04:06 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.9/8.12.9/Submit) id h7D345bH057701; Tue, 12 Aug 2003 20:04:05 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Tue, 12 Aug 2003 20:04:05 -0700 From: David Schultz To: Ryan Sommers Message-ID: <20030813030405.GB57582@HAL9000.homeunix.com> References: <20030812211812.29690.qmail@neuroflux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030812211812.29690.qmail@neuroflux.com> X-Mailman-Approved-At: Thu, 14 Aug 2003 01:44:06 -0700 cc: freebsd-questions@FreeBSD.ORG Subject: Re: x86 Disassembler X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2003 03:04:12 -0000 On Tue, Aug 12, 2003, Ryan Sommers wrote: > Are there any tools to disassemble an x86 binary file? objdump does a nice > job on most files. However, I'm messing with some machine-code binary files > that don't have ELF headers or anything other then the machine-code (ie > MBR's). I'd like to disassemble them on FreeBSD, possibly to a format that > G(as) could reassemble. Then I don't have to use something like debug.exe. One kludge that may work is to use objcopy --add-section to insert the machine code into an ELF file.