diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-02-13 17:01:15 +0100 |
---|---|---|
committer | Patsy Franklin <patsy@redhat.com> | 2020-03-15 17:33:57 -0400 |
commit | 8e5d591b101d7d8a4628522f1e5ec24b6dfa731b (patch) | |
tree | 85b9efa182dcdadf7fb10eb235de7275ce43f022 | |
parent | 0474cd5de60448f31d7b872805257092faa626e4 (diff) | |
download | glibc-8e5d591b101d7d8a4628522f1e5ec24b6dfa731b.zip glibc-8e5d591b101d7d8a4628522f1e5ec24b6dfa731b.tar.gz glibc-8e5d591b101d7d8a4628522f1e5ec24b6dfa731b.tar.bz2 |
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 052c1c7..4142695 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 |