Build get-cpuid-feature-leaf.c without stack-protector [BZ #27555]
commit941ea10f8099cb4fcc98c65249fc17a63fcff6a4
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 15 Mar 2021 14:54:45 +0000 (15 20:24 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 15 Mar 2021 14:54:45 +0000 (15 20:24 +0530)
tree4482a878b1246d1f83de352d855d0e31704f9ca1
parent03f42a56eb4e88601ebb334787c8198156197b29
Build get-cpuid-feature-leaf.c without stack-protector [BZ #27555]

__x86_get_cpuid_feature_leaf is called during early startup, before
the stack check guard is initialized and is hence not safe to build
with stack-protector.

Additionally, IFUNC resolvers for static tst-ifunc-isa tests get
called too early for stack protector to be useful, so fix them to
disable stack protector for the resolver functions.

This fixes all failures seen with --enable-stack-protector=all
configuration.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/x86/Makefile
sysdeps/x86/tst-ifunc-isa.h