commit | e958203796650e3959a43708d67534bf36f4c83b | [log] [tgz] |
---|---|---|
author | b.liu <b.liu@mobiletek.cn> | Thu Apr 17 19:18:16 2025 +0800 |
committer | b.liu <b.liu@mobiletek.cn> | Thu Apr 17 19:18:16 2025 +0800 |
tree | b2d43b7c77053224287779c12b5e890cadc3d327 | |
parent | f51a5559b56d8fd47d9623531065443befb43e5b [diff] [blame] |
ASR_BASE Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/marvell/linux/scripts/gcc-x86_32-has-stack-protector.sh b/marvell/linux/scripts/gcc-x86_32-has-stack-protector.sh new file mode 100755 index 0000000..e050201 --- /dev/null +++ b/marvell/linux/scripts/gcc-x86_32-has-stack-protector.sh
@@ -0,0 +1,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"