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