Suppressing symbols on Linux/gcc

Gagan Puri gaganpuri@infosys.com
Mon May 26 11:56:00 GMT 2003


Hi All,

I am compiling my application using gcc on Linux. My Application is linked to few thirdparty libraries. What i want is that I should export only some specific symbols of my code as per required. Rest all symbols are to suppressed. The thirdparty symbols also needs to be suppressed. What ld option should I use for exporting only specific symbols on Linux??? 
On HP we can use -Wl+e <symbol name> option by which we can list the name of symbols needed to be exported. On Solaris using mapfile(-M <mapfile>) serves my purpose. What is the corresponding option on Linux??

Kindly advise,
Gagan



More information about the Gcc-help mailing list