Supressing Symbols of Shared Library on Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi 
 

We are building a shared library on Red Hat Linux release 6.2 (Zoot)
Kernel 2.2.14-5.0 on an i686.We are using gcc version egcs-2.91.66 and
GNU ld version 2.9.5 (with BFD 2.9.5.0.22) for making our shared
library. We want to export only specific external symbols of  our
library and want to suppress all other symbols. What are the various
Linker options for doing the same (I tried --exclude-symbol option , but
the linker gives unrecognized option `--exclude-symbols' error.) The GCC
documentation says that `--exclude-symbols'  is an option specific to
i386 PE targets. Can I use this option for the my above mentioned
platform???


Is there any other way also to suppress the symbols in
Linux(version-script is I think another option, but I don't know the
format of writing version scripts). 

Romil


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux