author: Michal Kubecek <mkubecek@suse.cz> 2021-05-15 12:11:13 +0200
committer: Masahiro Yamada <masahiroy@kernel.org> 2021-05-17 12:10:03 +0900
commit: c93db682cfb213501881072a9200a48ce1dc3c3f
parent: 98a499a11ecdd8cb91d03dd5c034aaf7422f2deb
Commit Summary:
Diffstat:
1 file changed, 5 insertions, 1 deletion
diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc
index f6d543725f1e..b2483149bbe5 100755
--- a/scripts/dummy-tools/gcc
+++ b/scripts/dummy-tools/gcc
@@ -76,7 +76,11 @@ fi
if arg_contain -S "$@"; then
# For scripts/gcc-x86-*-has-stack-protector.sh
if arg_contain -fstack-protector "$@"; then
- echo "%gs"
+ if arg_contain -mstack-protector-guard-reg=fs "$@"; then
+ echo "%fs"
+ else
+ echo "%gs"
+ fi
exit 0
fi