Blame view
scripts/gcc-x86_32-has-stack-protector.sh
183 Bytes
60a5317ff x86: implement x8... |
1 |
#!/bin/sh |
ebd9026d9 stackprotector: f... |
2 |
echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs" |
60a5317ff x86: implement x8... |
3 4 5 6 7 |
if [ "$?" -eq "0" ] ; then echo y else echo n fi |