This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [EXTERNAL]Re: [PATCH v3] Mips support for PT_GNU_STACK
- From: Dragan Mladjenovic <dmladjenovic at wavecomp dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>, Carlos O'Donell <carlos at redhat dot com>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, "Maciej W . Rozycki" <macro at linux-mips dot org>, Faraz Shahbazker <fshahbazker at wavecomp dot com>
- Date: Mon, 5 Aug 2019 21:14:31 +0000
- Subject: Re: [EXTERNAL]Re: [PATCH v3] Mips support for PT_GNU_STACK
- Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=wavecomp.com;dmarc=pass action=none header.from=wavecomp.com;dkim=pass header.d=wavecomp.com;arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2xPhugQvOGMEMjwsqMxfDICGdiIfGT2WEvuM/TWnnJY=; b=UswykfsRnTY6fDiZ4X7yzPFQLTlrC90+OqPSf0fv2zcqirovFF+IEFup1Jx4NkLNzwKgUBNAX92gWIrSesXOffIvy92zzkKZrl2bcnErCFNjQr4Kg1SNiWZANCLIbpyRe19gXE6XD9d5iqUD2/Z97oQrxeFrsX2uq0Slo7oOX7bYbBU+EgAj0+GPC8Ho7ae+XFQ1M0Zcl377v+yEUcSEQtxx7LQ6GM+Wa356M8FrATFO9lEdcJHuGENc/4VVi8PLR3kufBAe0TmDUlUdZgXhTDwPWLvSnZ9ckWEfWgRwNTwAQ5RQxz3sIpeGbxTaBgRFb0BnDogLYhcPyBIwGKOhDg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eukorR5ciXNARBYq4w+rhVylmloWGGYC4SWY+nLnbk4n73uaNCeuZySoe8nmo9rZrrx9uSaZd5rEwEd4h8rlX17DuUatv4zvgVPYCZWeTu23I7Wm1vAIO8xMufmZ/Nn8qQB6byCg+1+YGhrtdRVvZIKvoduyztDSlVqiSc8Q/eZhq99uDMaO7ucJQeqn2Evdw6xHHAFUM3M59ComPkt56FpHGPnjgV9YInXNzroa6uBQ4vnBzV+P3VIdBrEPJYySmNlfgjvBo5dPPjEaHU+2kn6MnKuwFMfl23JYKEepf/Sg3cIUpcU9QcJwDODON7JLjc0Nuhf0z/N08mhpMw//cA==
- References: <1564936138-30899-1-git-send-email-dmladjenovic@wavecomp.com>,<alpine.DEB.2.21.1908051920240.25360@digraph.polyomino.org.uk>
________________________________________
From: Joseph Myers <joseph@codesourcery.com>
Sent: Monday, August 5, 2019 9:25 PM
To: Dragan Mladjenovic
Cc: libc-alpha@sourceware.org; Carlos O'Donell; Adhemerval Zanella; Maciej W . Rozycki; Faraz Shahbazker
Subject: [EXTERNAL]Re: [PATCH v3] Mips support for PT_GNU_STACK
On Sun, 4 Aug 2019, Dragan Mladjenovic wrote:
> In order to allow for the tool-chain to safely use PT_GNU_STACK by
> default, this patch bumps the minimum kernel version to 4.8 for the
> hard-float builds done with GNU.stack enabled tool-chain.
I think this explanation needs expanding. What is meant by "GNU.stack
enabled tool-chain"? How do you control whether a toolchain you build is
such a toolchain or not?
Yes, sorry about that.
GCC proposal can be found at https://gcc.gnu.org/ml/gcc-patches/2019-08/msg00251.html.
By "GNU.stack enabled tool-chain" I meant a toolchain whose gcc emits .note.GNU-stack by
default, which none currently do. Posted patch changes that if gcc is configured against next
glibc release using --with-glibc-version.
If simply building new-enough GCC and glibc quietly results in a new
kernel requirement without any special configure options being needed,
that could be a problem - we'd need to consider carefully whether such an
increase is desirable, or whether it's only appropriate given a suitable
--enable-kernel option.
We could simply error out during the configure in this case and let the user
set --enable-kernel if he wishes so, but I understand, it would be nice to allow
it to opt out from that forcing the gibc to be build with executable stack.
Will think about that.