diff options
author | Igor Zamyatin <igor.zamyatin@intel.com> | 2012-05-16 09:59:04 +0000 |
---|---|---|
committer | Kirill Yukhin <kyukhin@gcc.gnu.org> | 2012-05-16 09:59:04 +0000 |
commit | 40295cc722ce5ea0b7ba7b3cb91f6accce0db518 (patch) | |
tree | 6afb2cc9812566f23ee32114bc130b6e3a14a044 /gcc | |
parent | a224c148713269cc3bb6dbac45b38fe0e5148a2f (diff) | |
download | gcc-40295cc722ce5ea0b7ba7b3cb91f6accce0db518.zip gcc-40295cc722ce5ea0b7ba7b3cb91f6accce0db518.tar.gz gcc-40295cc722ce5ea0b7ba7b3cb91f6accce0db518.tar.bz2 |
configure.ac: Stack protector enabling for Android targets.
* configure.ac: Stack protector enabling for Android targets.
* configure: Regenerate.
From-SVN: r187586
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rwxr-xr-x | gcc/configure | 5 | ||||
-rw-r--r-- | gcc/configure.ac | 5 |
3 files changed, 15 insertions, 0 deletions
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 <igor.zamyatin@intel.com> + + * configure.ac: Stack protector enabling for Android targets. + * configure: Regenerate. + 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com> * 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*) |