q?

Feb 18, 2005 2 Replies

How can one convert the .so file into .a file?



Thanks Uday


I don't believe you can. The .so is missing some things that can't be recovered.

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Damion de Soto - Software Engineer email: snipped-for-privacy@snapgear.com SnapGear - A CyberGuard Company --- ph: +61 7 3435 2809 | Custom Embedded Solutions fax: +61 7 3891 3630 | and Security Appliances web:

formatting link
--- Free Embedded Linux Distro at
formatting link
---

If you do not have the .o files (or sources), there is no simple way (short of disassembly).

The .so file is already linked together, so it is essentially a runnable file with the special property of having the function entry points available from the outside. To be sharable, it must be compiled so that it will run correctly in whatever address range it is put in the process's address space.

The .a file is a collection of .o files put into a common packet by the archiver, ar.

HTH

Tauno Voipio tauno voipio (at) iki fi

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required