This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: Copy relocations against protected symbols


> I doubt we'll find any clever solution.  The linker defining a copy of
> a variable in .dynbss is quite at odds with protected visibility.  For
> example, a protected visibility variable allows a compiler to generate
> shared library code that accesses the variable without a GOT
> indirection.  However, it is exactly that GOT indirection that is
> needed for ld.so to make the shared library use the .dynbss copy.

Agreed. It looks like gold has the same problem; I'll commit a patch soon.

-cary


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