This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Hide/export symbols in static library


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]