binutils question on extracting object files

Started by neozeed, June 10, 2008, 05:44:53 pm

Previous topic - Next topic

neozeed

I know with ar I can extract the object files from a library...

ar x bla.a

and of course recombine them

ar cr bla2.a *.o
ranlib bla2.a

Now is there a way to do the same thing with exe's?

I've been playing around with nextstep and rhapsody, and I've managed to compile on nextstep, but link on rhapsody, and it'll run.. I'd like to test some other stuff further, but it'd be more fun to rip apart exe's...

So does anyone know if such a thing exists?
# include <wittycomment.h>

memson

QuoteSo does anyone know if such a thing exists?


No. You are describing unpacking staticly linked libraries.  Executables throw away too much info when they are linked. Bare in mind that object files are part of a compiler implementation, not part of the executable format.

[/quote]

neozeed

Quote from: "memson"
QuoteSo does anyone know if such a thing exists?


No. You are describing unpacking staticly linked libraries.  Executables throw away too much info when they are linked. Bare in mind that object files are part of a compiler implementation, not part of the executable format.

[/quote]

sigh i kind of figured that.\

Thanks for the reply!
# include <wittycomment.h>