This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Minimal GCC/Linux shared lib + EH bug example
- From: Jeff Sturm <jsturm at one-point dot com>
- To: David Abrahams <david dot abrahams at rcn dot com>
- Cc: c++std-ext at research dot att dot com, Mark Mitchell <mark at codesourcery dot com>, Jason Merrill <jason at redhat dot com>, "Ralf W. Grosse-Kunstleve" <rwgk at cci dot lbl dot gov>, gcc at gcc dot gnu dot org
- Date: Wed, 15 May 2002 21:47:40 -0400 (EDT)
- Subject: Re: Minimal GCC/Linux shared lib + EH bug example
On Wed, 15 May 2002, David Abrahams wrote:
> You may not be happy
> with it, but AFAICT on Linux, visibility control is an all-or-nothing
> proposal at each library boundary.
That's not quite true. GNU binutils support visibility directives
(e.g. .hidden, .protected) for ELF that affect an individual symbol's
linkage. As I understand it, .hidden symbols behave as ordinary
(non-exported) symbols on win32, and .protected as dllexport.
I'm not aware of any language frontend that makes use of these however.
Jeff