0d8b67
Based on the following commit, but modified for rhel-7.9.
0d8b67
0d8b67
commit c10acd40262486dac597001aecc20ad9d3bd0e4a
0d8b67
Author: Florian Weimer <fweimer@redhat.com>
0d8b67
Date:   Thu Feb 13 17:01:15 2020 +0100
0d8b67
0d8b67
    math/test-sinl-pseudo: Use stack protector only if available
0d8b67
    
0d8b67
    This fixes commit 9333498794cde1d5cca518bad ("Avoid ldbl-96 stack
0d8b67
    corruption from range reduction of pseudo-zero (bug 25487).").
0d8b67
0d8b67
diff -urN a/sysdeps/ieee754/ldbl-96/Makefile b/sysdeps/ieee754/ldbl-96/Makefile
0d8b67
--- a/sysdeps/ieee754/ldbl-96/Makefile	2021-01-06 20:55:49.163141757 -0500
0d8b67
+++ b/sysdeps/ieee754/ldbl-96/Makefile	2021-01-06 20:58:06.612989216 -0500
0d8b67
@@ -18,5 +18,7 @@
0d8b67
 
0d8b67
 ifeq ($(subdir),math)
0d8b67
 tests += test-sinl-pseudo
0d8b67
+ifeq ($(have-ssp),yes)
0d8b67
 CFLAGS-test-sinl-pseudo.c += -fstack-protector-all
0d8b67
 endif
0d8b67
+endif # $(subdir) == math