Skip to content
Commit 44900a8b authored by Michal Kubecek's avatar Michal Kubecek Committed by Greg Kroah-Hartman
Browse files

kbuild: dummy-tools: adjust to stricter stackprotector check



commit c93db682 upstream.

Commit 3fb0fdb3 ("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: 3fb0fdb3 ("x86/stackprotector/32: Make the canary into a regular percpu variable")
Signed-off-by: default avatarMichal Kubecek <mkubecek@suse.cz>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 682f6ca9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment