This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Sort relocs output by ld -r
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 19 Mar 2015 00:21:23 +1030
- Subject: Re: Sort relocs output by ld -r
- Authentication-results: sourceware.org; auth=none
- References: <20141204072210 dot GW20383 at bubble dot grove dot modra dot org> <20150313195125 dot GA29455 at maggie> <20150314040500 dot GC16488 at bubble dot grove dot modra dot org> <20150318132041 dot GF24573 at bubble dot grove dot modra dot org> <CAMe9rOokU0KiyFZwD3Fftwg3D85O5U9A9GgRN=9-vPJUueWfMQ at mail dot gmail dot com>
On Wed, Mar 18, 2015 at 06:34:10AM -0700, H.J. Lu wrote:
> On Wed, Mar 18, 2015 at 6:20 AM, Alan Modra <amodra@gmail.com> wrote:
> > a127494f Use dynamic text relocs for protected vars
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> I believe you should fix linker and glibc properly instead.
> But it is your call.
This is really a fall-back. I agree that your fix is the way to go,
but wish there was some inexpensive way for the linker to detect
shared libs that can support protected visibility data in .dynbss.
--
Alan Modra
Australia Development Lab, IBM