mirror of
https://abf.rosa.ru/djam/glibc40.git
synced 2025-02-23 15:52:52 +00:00
26 lines
873 B
Diff
26 lines
873 B
Diff
From c10acd40262486dac597001aecc20ad9d3bd0e4a Mon Sep 17 00:00:00 2001
|
|
From: Florian Weimer <fweimer@redhat.com>
|
|
Date: Thu, 13 Feb 2020 17:01:15 +0100
|
|
Subject: [PATCH] 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).").
|
|
---
|
|
sysdeps/ieee754/ldbl-96/Makefile | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/sysdeps/ieee754/ldbl-96/Makefile b/sysdeps/ieee754/ldbl-96/Makefile
|
|
index 318628aed6..6030adf7e7 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
|
|
--
|
|
2.30.2
|
|
|