This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFC] [MIPS] Enable non-executable PT_GNU_STACK support v2
- From: Joseph Myers <joseph at codesourcery dot com>
- To: "Maciej W. Rozycki" <macro at imgtec dot com>
- Cc: Aaro Koskinen <aaro dot koskinen at iki dot fi>, <binutils at sourceware dot org>, Faraz Shahbazker <faraz dot shahbazker at imgtec dot com>, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>, Aurelien Jarno <aurelien at aurel32 dot net>
- Date: Thu, 22 Dec 2016 01:10:31 +0000
- Subject: Re: [RFC] [MIPS] Enable non-executable PT_GNU_STACK support v2
- Authentication-results: sourceware.org; auth=none
- References: <56A15768.20005@imgtec.com> <56A157AF.8080504@imgtec.com> <alpine.DEB.2.10.1601212215030.24424@digraph.polyomino.org.uk> <56A6BF93.5010401@imgtec.com> <56B4EC43.7040000@imgtec.com> <20160811210118.GA5342@aurel32.net> <20161222003609.3fdfjx6at2f5ffuv@raspberrypi-2.musicnaut.iki.fi> <alpine.DEB.2.00.1612220042030.6743@tp.orcam.me.uk> <alpine.DEB.2.20.1612220055160.12584@digraph.polyomino.org.uk>
On Thu, 22 Dec 2016, Joseph Myers wrote:
> I thought 4 was reserved for IFUNC, meaning that support for 5 implied
> support for IFUNC (because a simple comparison is all that's available to
> tell whether glibc supports the features required by an executable /
> shared library; it's a single ABI version number, not a bitmask of
> features used) and so the ordering was forced. Certainly the patch here
> lists IFUNC before MIPS_GNU_STACK, and I don't think the libc-abis system
> supports gaps in the numbering (you'd need to put in a dummy name if 4 is
> now to be unused, but then the dummy name would be visible when you run
> libc.so.6, which it shouldn't be).
The natural way to address that issue, incidentally, would be to reassign
number 4 to MIPS_GNU_STACK and say that IFUNC will get number 5 when
ready. (All the other comments about patch proposals that are explicitly
for review not RFC, with rationale, architecture-independent pieces split
out etc., still apply.)
--
Joseph S. Myers
joseph@codesourcery.com