android_kernel_samsung_a23xq/scripts/gcc-x86_32-has-stack-protector.sh
rsuntk ae5385525c Initial A23 5G source
Signed-off-by: rsuntk <rissu.ntk@gmail.com>
2025-01-11 02:04:00 +07:00

4 lines
173 B
Bash
Executable file

#!/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"