Re: Symbol visibility and bypassing PLT for intra-DSO calls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/12/2012 11:22 AM, Alexander Monakov wrote:

It would be sort-of nice to do this at the compiler level, so that the
programmer doesn't have to specify a linker option.  And a finer granularity
to control this feature might make sense in some cases.

Is "protected" visibility what you need?  From the manual:

     Protected visibility is like default visibility except that it indicates
     that references within the defining module bind to the definition in that
     module. That is, the declared entity cannot be overridden by another module.

Yes, this should do it, thanks. I was confused by the -fvisibility=protected documentation.

--
Florian Weimer / Red Hat Product Security Team


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux