From owner-freebsd-hackers Fri Feb 4 11:35:44 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by builder.freebsd.org (Postfix) with ESMTP id 2198F4557; Fri, 4 Feb 2000 11:33:23 -0800 (PST) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by anchor-post-32.mail.demon.net with esmtp (Exim 2.12 #1) id 12GoTl-000PHF-0W; Fri, 4 Feb 2000 19:33:17 +0000 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id TAA01021; Fri, 4 Feb 2000 19:22:12 GMT (envelope-from dfr@nlsystems.com) Date: Fri, 4 Feb 2000 19:36:53 +0000 (GMT) From: Doug Rabson To: John Baldwin Cc: marcov@stack.nl, freebsd-hackers@freebsd.org Subject: RE: elf In-Reply-To: <200002041525.KAA66453@server.baldwin.cx> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 4 Feb 2000, John Baldwin wrote: > > On 04-Feb-00 Marco van de Voort wrote: > > > > > > How can I disassemble ELF programs? > > > > I need to create my own startup code for FPC programs. > > (copying some variables before pascal code startup) > > Try 'objdump -d'. It's more readable if you don't strip the program. > You can also use this to disassemble object files as well, so you > could just 'objdump -d /usr/lib/crt0.o'. My favourite is 'objdump -dS' to include source code. This obviously requires debugging information in the disassembled thing. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message