]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
math/test-sinl-pseudo: Use stack protector only if available
authorFlorian Weimer <fweimer@redhat.com>
Thu, 13 Feb 2020 16:01:15 +0000 (17:01 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 30 Nov 2020 22:59:53 +0000 (22:59 +0000)
This fixes commit 9333498794cde1d5cca518bad ("Avoid ldbl-96 stack
corruption from range reduction of pseudo-zero (bug 25487).").

(cherry picked from commit c10acd40262486dac597001aecc20ad9d3bd0e4a)

sysdeps/ieee754/ldbl-96/Makefile

index 99c596e3ced27d2144a42f9de641d9000d37b9fb..daa2753cf1182f431679db8340f0807a0ad3910f 100644 (file)
@@ -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