Blame view
scripts/gcc-x86_64-has-stack-protector.sh
199 Bytes
4f7fd4d7a [PATCH] Add the -... |
1 |
#!/bin/sh |
ebd9026d9 stackprotector: f... |
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 [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 |