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]

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


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