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
Many thanks


|