From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7814) id F1ADB3858031; Fri, 27 Aug 2021 23:50:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1ADB3858031 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Fangrui Song To: glibc-cvs@sourceware.org Subject: [glibc/maskray/grte] math/test-sinl-pseudo: Use stack protector only if available X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/maskray/grte X-Git-Oldrev: 16ce1a18ccf25e9f94997530c95c6faa08983de9 X-Git-Newrev: e243911685e5541821b3f7113c43da20410b9019 Message-Id: <20210827235006.F1ADB3858031@sourceware.org> Date: Fri, 27 Aug 2021 23:50:06 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2021 23:50:07 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e243911685e5541821b3f7113c43da20410b9019 commit e243911685e5541821b3f7113c43da20410b9019 Author: Florian Weimer Date: Thu Feb 13 17:01:15 2020 +0100 math/test-sinl-pseudo: Use stack protector only if available This fixes commit 9333498794cde1d5cca518bad ("Avoid ldbl-96 stack corruption from range reduction of pseudo-zero (bug 25487)."). Diff: --- sysdeps/ieee754/ldbl-96/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/ieee754/ldbl-96/Makefile b/sysdeps/ieee754/ldbl-96/Makefile index 99c596e3ce..daa2753cf1 100644 --- a/sysdeps/ieee754/ldbl-96/Makefile +++ b/sysdeps/ieee754/ldbl-96/Makefile @@ -18,5 +18,7 @@ ifeq ($(subdir),math) tests += test-canonical-ldbl-96 test-totalorderl-ldbl-96 test-sinl-pseudo +ifeq ($(have-ssp),yes) CFLAGS-test-sinl-pseudo.c += -fstack-protector-all endif +endif # $(subdir) == math