This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH 10/12] Work even with compilers hacked to enable -fstack-protector by default.
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Nix <nix at esperi dot org dot uk>
- Cc: <libc-alpha at sourceware dot org>, <carlos at redhat dot com>
- Date: Sat, 20 Feb 2016 17:32:05 +0000
- Subject: Re: [PATCH 10/12] Work even with compilers hacked to enable -fstack-protector by default.
- Authentication-results: sourceware.org; auth=none
- References: <1455963826-21885-1-git-send-email-nix at esperi dot org dot uk> <1455963826-21885-11-git-send-email-nix at esperi dot org dot uk>
On Sat, 20 Feb 2016, Nix wrote:
> From: Nick Alcock <firstname.lastname@example.org>
> With all the machinery we just added, we can easily arrange to work even
> when the compiler passes in -fstack-protector automatically: all the
> necessary bits of glibc are always compiled with -fno-stack-protector
> So tear out the check in configure, and add appropriate calls to
> -fno-stack-protector and/or -lssp in tests that need them (largely
> those that use -nostdlib).
You should avoid ever linking with -lssp. Tests should return the same
results when built with a minimal static-only bootstrap compiler (which
likely has libssp disabled) as with a full compiler (indeed, a full
compiler may well have libssp disabled as well), so that such a bootstrap
compiler can produce glibc binaries identical to those produced by an
alternating sequence of GCC and glibc builds.
Joseph S. Myers