This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] [BZ #16512] Strip @@GLIBC_.* and @@GCC_.* from symbol names
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 29 Jan 2014 14:09:40 -0800 (PST)
- Subject: Re: [PATCH] [BZ #16512] Strip @@GLIBC_.* and @@GCC_.* from symbol names
- Authentication-results: sourceware.org; auth=none
- References: <20140129211931 dot GA5533 at intel dot com> <20140129212339 dot 27A2774412 at topped-with-meat dot com> <CAMe9rOry3d_emOwQEDc4ZLSgFc84CFHkGui=e_w4qWYEsLjXNQ at mail dot gmail dot com>
> On Wed, Jan 29, 2014 at 1:23 PM, Roland McGrath <roland@hack.frob.com> wrote:
> >> "readelf -r" may dislay symbol version in dynamic relocation:
> >
> > When does it and when doesn't it?
>
> If you use binutils with the fix for
>
> https://www.sourceware.org/bugzilla/show_bug.cgi?id=16496
>
> like Linux binutils 2.24.51.0.3, you will get symbol version
> in dynamic relocation.
I see. So the answer is that it doesn't ever do it, and you've proposed
making it always do it, but that has not been approved by binutils
maintainers. (Breaking existing scripts this way might be a good reason
the change gets rejected.)
> > Perhaps it would be better to have the exact symbol version be part
> > of each reference list. But perhaps it would be worse. I have not
> > given it a lot of thought.
>
> It won't work with the binuitls which doesn't have the PR 16496
> fix.
There are multiple ways to get the information. That will not be a barrier.
We just have to decide whether we think it's the right thing to do or not.
Thanks,
Roland