On Tue Sep 14, 2004 at 11:39:03 +0800, Well wrote:
Hi All
If I have 2 object file, one is API library , another is executable object.
The executable object makes reference to the libray. Now I want to downsize
the 2 objects. I can strip the executable object directly, but how to strip the
API library when it's a reference of the executable object.
Is it a .a or .so (static or dynamic library). Actually i don't think
it will make much difference, I'm fairly sure you can't strip a
library. You need the symbols in the library or else it ain't going to
work -- when you link against it the linker (ld or the dynamic linker) is
going to need to know the locations of symbols, which means it is going to
lookup the symbol table.
Although you can probably strip some of the symbols. I suggest reading the
man page.
And, how can I list the smbols removed by strip?
Run nm on the file before you strip it. (Obviously after it is
stripped that info is gone.)
Benno
P.S: Please only post plain text to the slug mailing list.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html