[Cbe-oss-dev] [PATCH] use -fvisibility=hidden in libspe

Andrew Pinski pinskia at physics.uc.edu
Sun Jul 2 11:40:02 EST 2006


On Jul 1, 2006, at 3:38 AM, Christoph Hellwig wrote:

> We can control visibility of symbols in ELF libraries.  The default
> visibility allows everyone to see the symbols and means they need  
> to go
> through .GOT indirections, etc.  Switching the visibility to hidden  
> for
> all non-API symbols allows to reduce size of the library and speed it
> up.  Besides keeping people from using internal symbols, of course.

I agree this is a good thing but it should be noted that to some extend
there are problems with -fvisibility=hidden in GCCs before July 1,  
2006's
mainline (at least in C++).  There are other issues with it even in  
today's
mainline GCC that have not been fixed yet.  If someone wants more  
details
at the problems in GCC with this option, I can point them to the bug  
reports.

Thanks,
Andrew Pinski




More information about the cbe-oss-dev mailing list