https://github.com/torvalds/linux
Raw File
Tip revision: 7d194c2100ad2a6dded545887d02754948ca5241 authored by Linus Torvalds on 20 October 2019, 19:56:22 UTC
Linux 5.4-rc4
Tip revision: 7d194c2
gcc-x86_32-has-stack-protector.sh
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0

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