Skip to content

Commit

Permalink
libm: disable tail jump trick if __SSP_ALL__ (was using wrong conditi…
Browse files Browse the repository at this point in the history
…onal)

Thanks, Timo!

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
  • Loading branch information
Denys Vlasenko committed Oct 31, 2010
1 parent 8b34cac commit 4d537e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/defines.txt
Expand Up @@ -79,3 +79,7 @@ _IEEE_LIBM
Always defined at libm build time Always defined at libm build time
__LDBL_COMPAT __LDBL_COMPAT
Never defined, TODO: remove? Never defined, TODO: remove?

__SSP_ALL__
All functions, even small ones, have stack smashing protection
prologue enabled.
2 changes: 1 addition & 1 deletion libm/ldouble_wrappers.c
Expand Up @@ -37,7 +37,7 @@ long long func##l(long double x) \
return func((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 WRAPPER1
# undef int_WRAPPER1 # undef int_WRAPPER1
# undef long_WRAPPER1 # undef long_WRAPPER1
Expand Down

0 comments on commit 4d537e8

Please sign in to comment.