This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: mapfile
- From: "Ajay Bansal" <Ajay_Bansal at infosys dot com>
- To: "Tony Wetmore" <tony dot wetmore at solipsys dot com>,<lrtaylor at micron dot com>,<abansal at netegrity dot com>,<gcc-help at gcc dot gnu dot org>
- Date: Wed, 29 Oct 2003 12:27:11 +0530
- Subject: RE: mapfile
But it does not solve the purpose. So.. That means that gcc (RedHat
Linux) does not have anything like sun compilers/hp/windows compiler
have.. i.e. to have a mapfile/symfile & then export only the required
symbols exported/
-----Original Message-----
From: Tony Wetmore [mailto:tony.wetmore@solipsys.com]
Sent: Tuesday, October 28, 2003 10:45 PM
To: lrtaylor@micron.com; abansal@netegrity.com; gcc-help@gcc.gnu.org
> > Does Linux/gcc support a mapfile syntax, so that we can hide/export
> > symbols in shared lib on Linux as well?
>
> ...if you declare functions or variables as being static... they will
> only be visible within that compilation unit...
Of course, code within the compilation unit can always pass (or return)
pointers to static elements to code outside the compilation unit. I
have never done this across shared library boundaries, but I do not see
why it should fail.
Naturally, this might be a kind of kludgy solution to your problem. :)
---
Tony Wetmore
Raytheon Solipsys
mailto:tony.wetmore@solipsys.com
http://www.solipsys.com