Hide/export symbols in static library

Jyotirmoy Sharma jyotirmoy.sharma@ittiam.com
Tue May 31 11:14:00 GMT 2005


Hi,

Can anyone tell me how I can hide all the global symbols except
for few (i.e. export only selected symbols) while building a static library?

I have tried using "ld -r f1.o f2.o -o lib.a", but this exposes all the global
symbols.

Regards,
Jyotirmoy



More information about the Gcc-help mailing list