This repository has been archived on 2025-06-06. You can view files and clone it, but cannot push or open issues or pull requests.
Files
android-g900/kernel-2.6.33/scripts/gcc-x86_32-has-stack-protector.sh
Angell Fear 0666031fb7 G900 support
2010-09-03 00:59:42 +06:00

9 lines
183 B
Bash
Executable File

#!/bin/sh
echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
if [ "$?" -eq "0" ] ; then
echo y
else
echo n
fi