On Thu, 10 Apr 2008 11:21:44 -0700 (PDT), ljp <spamtrap@[EMAIL PROTECTED]
>
wrote:
>Hi everyone, I have a bizarre question about x86 disassembly...
>
>I want to disassemble a Linux x86 executable into assembler source
>that can then be re-assembled into the original binary.
>
>Is this total madness? I control the original compilation (using
>gcc), so the binary does contain debugging information -- with this
>information, is objdump (or any other tool?) going to be able to
>disassemble the binary correctly without guessing about instruction
>boundaries?
>
>The reason I'm considering this is that I need a single assembly file
>representing the program /after/ linking.
>
>Alternately, does anyone know of a way to "link" assembly files, e.g.,
>if the normal order of things is:
>
> foo.s -> ASSEMBLER -> foo.o
> bar.s -> ASSEMBLER -> bar.o
> foo.o, bar.o -> LINKER -> foobar.exe
>
>then I want to get foobar.s such that
>
> foo.s, bar.s -> ??? -> foobar.s
> foobar.s -> ASSEMBLER -> foobar.exe
If you aready have foo.s & bar.s, that should be pretty trivial for
anyone who is past a beginning assembly programmer.
--
ArarghMail805 at [drop the 'http://www.'
from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html
To reply by email, remove the extra stuff from the reply address.


|