This is the mail archive of the
libc-alpha@sourceware.org
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: <20180429065756.bvponxkyyqtmdrbg@debian64.galaxy.int> <alpine.DEB.2.00.1804300946270.11756@tp.orcam.me.uk> <alpine.DEB.2.20.1804301518320.17105@digraph.polyomino.org.uk> <alpine.DEB.2.00.1804301654210.11756@tp.orcam.me.uk> <alpine.DEB.2.20.1804301935440.3035@digraph.polyomino.org.uk>
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
> suffice?
>
> 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
> files?
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.
Maciej