aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-x86_32-has-stack-protector.sh
blob: e05020116b3775f3c4dda2d9da1f3df921c3f4c5 (plain)
1
2
3
4
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0

echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -m32 -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs"