Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Feb 2000 19:36:53 +0000 (GMT)
From:      Doug Rabson <dfr@nlsystems.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        marcov@stack.nl, freebsd-hackers@freebsd.org
Subject:   RE: elf
Message-ID:  <Pine.BSF.4.10.10002041935341.57749-100000@salmon.nlsystems.com>
In-Reply-To: <200002041525.KAA66453@server.baldwin.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10002041935341.57749-100000>