summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/defines.txt4
-rw-r--r--libm/ldouble_wrappers.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/defines.txt b/docs/defines.txt
index 8f37788dc..6e4a60485 100644
--- a/docs/defines.txt
+++ b/docs/defines.txt
@@ -79,3 +79,7 @@ _IEEE_LIBM
Always defined at libm build time
__LDBL_COMPAT
Never defined, TODO: remove?
+
+__SSP_ALL__
+ All functions, even small ones, have stack smashing protection
+ prologue enabled.
diff --git a/libm/ldouble_wrappers.c b/libm/ldouble_wrappers.c
index e2d4d8036..0fe6e8d97 100644
--- a/libm/ldouble_wrappers.c
+++ b/libm/ldouble_wrappers.c
@@ -37,7 +37,7 @@ long long func##l(long double x) \
return func((double) x); \
}
-#if defined __i386__ && defined __OPTIMIZE__ && !defined __UCLIBC_HAS_SSP__
+#if defined __i386__ && defined __OPTIMIZE__ && !defined __SSP_ALL__
# undef WRAPPER1
# undef int_WRAPPER1
# undef long_WRAPPER1