binutils question on extracting object files

NeXT Computer, Inc. -> NEXTSTEP / OPENSTEP Software

Title: binutils question on extracting object files
Post by: neozeed on June 10, 2008, 12:44:53 PM
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?
Title: Re: binutils question on extracting object files
Post by: memson on June 13, 2008, 05:05:08 PM
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]
Title: Re: binutils question on extracting object files
Post by: neozeed on June 13, 2008, 05:16:11 PM
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!

Go to top  Forum index