This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Suppressing symbols on Linux/gcc
- From: "Gagan Puri" <gaganpuri at infosys dot com>
- To: <gcc-help at gcc dot gnu dot org>,<gcc-help-help at gcc dot gnu dot org>
- Date: Mon, 26 May 2003 17:22:42 +0530
- 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