This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/54182] -fvisibility=hidden shouldn't be disabled with -fPIE -pie


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54182

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #19 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-08-11 07:32:52 UTC ---
It is not a bug and not everyone wants the same as you, e.g. you can't refer to
symbols in the PIE from plugins if you do.  When compiling PIE executables, you
shouldn't be using the -fPIC/-fpic flag, but -fPIE/-fpie instead, which works
similarly to -fvisibility=hidden in that references to those symbols are
cheaper (can use GOT/IP relative addressing on many architectures), but the
symbols are still exported.  Please stop reopening.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]