소스 검색

libm: disable tail jump trick if __SSP_ALL__ (was using wrong conditional)

Thanks, Timo!

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko 13 년 전
부모
커밋
4d537e8547
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 0
      docs/defines.txt
  2. 1 1
      libm/ldouble_wrappers.c

+ 4 - 0
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.

+ 1 - 1
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