Symbol visibility and bypassing PLT for intra-DSO calls
Florian Weimer
fweimer@redhat.com
Mon Nov 12 15:31:00 GMT 2012
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
More information about the Gcc-help
mailing list