logo       

Suppressing symbols on Linux/gcc: msg#00235

gcc.help

Subject: Suppressing symbols on Linux/gcc

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



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise