Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > x86 disassembly...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 4611 of 4646
Post > Topic >>

x86 disassembly + reassembly

by ljp <spamtrap@[EMAIL PROTECTED] > Apr 10, 2008 at 11:21 AM

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




 9 Posts in Topic:
x86 disassembly + reassembly
ljp <spamtrap@[EMAIL   2008-04-10 11:21:44 
Re: x86 disassembly + reassembly
Belal <spamtrap@[EMAI  2008-04-30 23:08:40 
Re: x86 disassembly + reassembly
"Alexei A. Frounze&q  2008-05-01 02:43:29 
Re: x86 disassembly + reassembly
ArarghMail805NOSPAM <s  2008-05-01 20:55:32 
Re: x86 disassembly + reassembly
Frank Kotler <spamtra  2008-05-03 02:37:40 
Re: x86 disassembly + reassembly
"Alexei A. Frounze&q  2008-05-03 00:00:34 
Re: x86 disassembly + reassembly
Terje Mathisen <spamt  2008-05-03 11:45:51 
Re: x86 disassembly + reassembly
"Alexei A. Frounze&q  2008-05-03 11:49:38 
Re: x86 disassembly + reassembly
"Rod Pemberton"  2008-05-04 00:28:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 16:54:25 CDT 2008.