diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-02-13 17:01:15 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-11-30 22:59:53 +0000 |
commit | 4b8628acab03a4875a5c3bfe847c9f0a1ccbd081 (patch) | |
tree | a91acdfb7c2cf68d48ec9f064d171cedaa1d74ae | |
parent | 59420258afaf73dc8fab63ce186bac792613fe08 (diff) | |
download | glibc-4b8628acab03a4875a5c3bfe847c9f0a1ccbd081.tar glibc-4b8628acab03a4875a5c3bfe847c9f0a1ccbd081.tar.gz glibc-4b8628acab03a4875a5c3bfe847c9f0a1ccbd081.tar.bz2 glibc-4b8628acab03a4875a5c3bfe847c9f0a1ccbd081.zip |
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).").
(cherry picked from commit c10acd40262486dac597001aecc20ad9d3bd0e4a)
-rw-r--r-- | sysdeps/ieee754/ldbl-96/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
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 |