summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-10-31 15:58:18 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-10-31 15:58:18 +0100
commit4d537e8547b8d623e1847cd80d3da455dc52ff85 (patch)
tree5b6c9126fe2f668f3ec3d15daedcb0734ad3030a
parent8b34cac8748067dbebc99f1b8450c5de91661db5 (diff)
libm: disable tail jump trick if __SSP_ALL__ (was using wrong conditional)
Thanks, Timo! Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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