From e54ce7078fcc30fe6aabeb9d372343d7435b6eb2 Mon Sep 17 00:00:00 2001 From: kyukhin Date: Wed, 16 May 2012 09:59:04 +0000 Subject: [PATCH] * configure.ac: Stack protector enabling for Android targets. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187586 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/configure | 5 +++++ gcc/configure.ac | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 24e5a7a..2d2260f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-05-16 Igor Zamyatin + + * configure.ac: Stack protector enabling for Android targets. + * configure: Regenerate. + 2012-05-16 Richard Sandiford * ira.c (pseudo_move_insn): Delete. diff --git a/gcc/configure b/gcc/configure index 557a4cc7..4f43eaa 100755 --- a/gcc/configure +++ b/gcc/configure @@ -26657,6 +26657,11 @@ else $target_header_dir/bits/uClibc_config.h > /dev/null; then gcc_cv_libc_provides_ssp=yes fi + # all versions of Bionic support stack protector + elif test -f $target_header_dir/sys/cdefs.h \ + && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \ + $target_header_dir/sys/cdefs.h > /dev/null; then + gcc_cv_libc_provides_ssp=yes fi ;; *-*-gnu*) diff --git a/gcc/configure.ac b/gcc/configure.ac index 2c17736..6b793c4 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -4566,6 +4566,11 @@ AC_CACHE_CHECK(__stack_chk_fail in target C library, $target_header_dir/bits/uClibc_config.h > /dev/null; then gcc_cv_libc_provides_ssp=yes fi + # all versions of Bionic support stack protector + elif test -f $target_header_dir/sys/cdefs.h \ + && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \ + $target_header_dir/sys/cdefs.h > /dev/null; then + gcc_cv_libc_provides_ssp=yes fi] ;; *-*-gnu*) -- 2.7.4