X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=scripts%2Fgcc-x86_32-has-stack-protector.sh;h=29493dc4528d0b88032f0b8d2747242e66e8f231;hb=681405bfc73a2717ae9b03b2bad465b009106f31;hp=4fdf6ce1b062a751b906538ec37af92e6404269a;hpb=60a5317ff0f42dd313094b88f809f63041568b08;p=safe%2Fjmp%2Flinux-2.6 diff --git a/scripts/gcc-x86_32-has-stack-protector.sh b/scripts/gcc-x86_32-has-stack-protector.sh index 4fdf6ce..29493dc 100644 --- a/scripts/gcc-x86_32-has-stack-protector.sh +++ b/scripts/gcc-x86_32-has-stack-protector.sh @@ -1,6 +1,6 @@ #!/bin/sh -echo "int foo(void) { char X[200]; return 3; }" | $1 -S -xc -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs" +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