From 4d537e8547b8d623e1847cd80d3da455dc52ff85 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 31 Oct 2010 15:58:18 +0100 Subject: libm: disable tail jump trick if __SSP_ALL__ (was using wrong conditional) Thanks, Timo! Signed-off-by: Denys Vlasenko --- docs/defines.txt | 4 ++++ libm/ldouble_wrappers.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3