Hi

I'm not 100% certain exactly how applicable this is to the Sun tools, but I 
suspect that it does apply.

In general, when linking an app to object files (standalone or in a static 
library) then the linker will normally either link the entire .o if any symbol 
is used, or not link it if nothing is used. So if you organise your library so 
that you have one function per file, then the linker will find it easier to 
eliminate unused code.

I suppose that you want to strip symbols that are not exported and are not used 
internally? I don't know if the linker can do that like it does with an app.

A+
Paul
--
This message posted from opensolaris.org

Reply via email to