This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH v4] BFD: Prevent writing the MIPS _gp_disp symbol into symbol tables
- From: "Maciej W. Rozycki" <macro at mips dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: Simon Atanasyan <simon at atanasyan dot com>, <binutils at sourceware dot org>, <libc-alpha at sourceware dot org>
- Date: Tue, 1 May 2018 12:54:17 +0100
- Subject: Re: [PATCH v4] BFD: Prevent writing the MIPS _gp_disp symbol into symbol tables
- References: <email@example.com> <alpine.DEB.firstname.lastname@example.org> <alpine.DEB.email@example.com> <alpine.DEB.firstname.lastname@example.org> <alpine.DEB.email@example.com>
On Mon, 30 Apr 2018, Joseph Myers wrote:
> > Therefore I think we should selectively ignore it. What you write
> > implies we have no predefined way of doing that, and it looks to me like
> > we ought to define a way to feed `scripts/abilist.awk' a (carefully
> > selected) list of symbols to ignore in processing.
> But do we need such a list, or would just ignoring all absolute symbols
> At present, abilist.awk shows such symbols with a type of "A". Apart from
> symbol version names, _gp_disp seems to be the only such symbol. Is there
> any need to have the "A" lines for each symbol version in the abilist
I don't know. Perhaps someone else knows.
As I noted stripping the problematic symbol is IMO the best solution.
Using `$CC -print-prog-name=strip' to discover where the right `strip'
binary is should be a straightforward way to arrange that in a platform
`configure' fragment. Then we can dump `_gp_disp' from .abilist files.