This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Re: [PATCH 1/5] Use protected visibility for _rtld_global and _rtld_global_ro


On 13 May 2013, Richard Henderson said:

> On 05/13/2013 08:36 AM, Peter Collingbourne wrote:
>> _rtld_local was created back in 2002 (see commit 0d01dac), and the
>> protected attribute removed on _rtld_global, for an undocumented
>> reason...
>
> Protected visibility requires more runtime overhead in the dynamic linker.

Quite. Anyone outside libc accessing it is a lunatic who deserves what
they get (speaking as someone who wrote code doing just that last month)
and who one hopes, knows what they are doing, and is unlikely to be put
off by a little peccadillo like protected visibility. So you're paying a
measurable cost for no real gain.

-- 
NULL && (void)


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