about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-13 17:01:15 +0100
committerFangrui Song <i@maskray.me>2021-08-27 17:26:08 -0700
commitf1d716a048146099600d8fadb9d83a31c018dd6f (patch)
tree5dac207f8c85cc7694fc59c99d92c5821fc3b477
parent8c5a6bf8130c9e94d015eb6005ad19a16c1f6f0a (diff)
downloadglibc-f1d716a048146099600d8fadb9d83a31c018dd6f.tar.gz
glibc-f1d716a048146099600d8fadb9d83a31c018dd6f.tar.xz
glibc-f1d716a048146099600d8fadb9d83a31c018dd6f.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).").
-rw-r--r--sysdeps/ieee754/ldbl-96/Makefile2
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