diff options
author | Kevin | 2014-11-15 09:58:27 +0800 |
---|---|---|
committer | Kevin | 2014-11-15 09:58:27 +0800 |
commit | 392e8802486cb573b916e746010e141a75f507e6 (patch) | |
tree | 50029aca02c81f087b90336e670b44e510782330 /ANDROID_3.4.5/scripts/gcc-x86_64-has-stack-protector.sh | |
download | FOSSEE-netbook-kernel-source-392e8802486cb573b916e746010e141a75f507e6.tar.gz FOSSEE-netbook-kernel-source-392e8802486cb573b916e746010e141a75f507e6.tar.bz2 FOSSEE-netbook-kernel-source-392e8802486cb573b916e746010e141a75f507e6.zip |
init android origin source code
Diffstat (limited to 'ANDROID_3.4.5/scripts/gcc-x86_64-has-stack-protector.sh')
-rw-r--r-- | ANDROID_3.4.5/scripts/gcc-x86_64-has-stack-protector.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ANDROID_3.4.5/scripts/gcc-x86_64-has-stack-protector.sh b/ANDROID_3.4.5/scripts/gcc-x86_64-has-stack-protector.sh new file mode 100644 index 00000000..afaec618 --- /dev/null +++ b/ANDROID_3.4.5/scripts/gcc-x86_64-has-stack-protector.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -c -O0 -mcmodel=kernel -fstack-protector - -o - 2> /dev/null | grep -q "%gs" +if [ "$?" -eq "0" ] ; then + echo y +else + echo n +fi |