http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54182
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED CC| |jakub at gcc dot gnu.org Resolution| |INVALID --- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-08-10 13:43:43 UTC --- -fvisibility=hidden is only about the visibility of the symbols you define in the code you are compiling, for controlling what you export or not out of a binary, shared library or PIE, you need to tell what you want or don't want to export to the linker. -fvisibility=hidden is a compiler option, not a linker option.