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] PR dynamic-link/17711: copy relocations against protected symbols don't work


On Fri, Feb 27, 2015 at 01:24:19PM -0800, H.J. Lu wrote:
> Protocted symbol in shared library can only be accessed from PIE
> or shared library.  Linker in binutils 2.26 enforces it.  We must
> compile vismain with -fPIE and link it with -pie.  OK for master?

This is a bug in GCC. It's ignoring the fact that copy relocations are
an implementation detail and don't carry a semantic of symbol
replacement, and it makes protected visibility basically unusable. :(

Rich


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