Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Feb 2000 10:25:29 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        (Marco van de Voort) <marcov@stack.nl>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   RE: elf
Message-ID:  <200002041525.KAA66453@server.baldwin.cx>
In-Reply-To: <20000204132701.BAD1396D7@toad.stack.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

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'.

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


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?200002041525.KAA66453>