Blame view
scripts/gcc-x86_64-has-stack-protector.sh
199 Bytes
4f7fd4d7a
|
1 |
#!/bin/sh |
ebd9026d9
|
2 |
echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -c -O0 -mcmodel=kernel -fstack-protector - -o - 2> /dev/null | grep -q "%gs" |
4f7fd4d7a
|
3 |
if [ "$?" -eq "0" ] ; then |
5d707e9c8
|
4 5 6 |
echo y else echo n |
4f7fd4d7a
|
7 |
fi |