]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: dummy-tools: adjust to stricter stackprotector check
authorMichal Kubecek <mkubecek@suse.cz>
Sat, 15 May 2021 10:11:13 +0000 (12:11 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 17 May 2021 03:10:03 +0000 (12:10 +0900)
commitd321d49c72f3a5cbcc4e02ce4533ff591cc36216
tree4b757f43f6dfed0ad7c8e7850464db639dc03e6e
parent4cfb3c946c738ceb7dc9ea6719a48fad6cffc11f
kbuild: dummy-tools: adjust to stricter stackprotector check

Commit 5e78434e3652 ("x86/stackprotector/32: Make the canary into a regular
percpu variable") modified the stackprotector check on 32-bit x86 to check
if gcc supports using %fs as canary. Adjust dummy-tools gcc script to pass
this new test by returning "%fs" rather than "%gs" if it detects
-mstack-protector-guard-reg=fs on command line.

Fixes: 5e78434e3652 ("x86/stackprotector/32: Make the canary into a regular percpu variable")
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/dummy-tools/gcc