This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] PR dynamic-link/17711: copy relocations against protected symbols don't work
- From: Rich Felker <dalias at libc dot org>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 27 Feb 2015 20:41:54 -0500
- Subject: Re: [PATCH] PR dynamic-link/17711: copy relocations against protected symbols don't work
- Authentication-results: sourceware.org; auth=none
- References: <20150227212418 dot GA5072 at intel dot com>
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