From: H.J. Lu Date: Tue, 17 Jul 2018 11:16:19 +0000 (-0700) Subject: x86: Always include /cet-tunables.h> for --enable-cet X-Git-Tag: glibc-2.28~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba2ea23d053e293baeb39554b2e9fc56f8ef335b;p=thirdparty%2Fglibc.git x86: Always include /cet-tunables.h> for --enable-cet Always include and cet-tunables.h> when CET is enabled. Otherwise, configure glibc with --enable-cet --disable-tunables will fail to build. * sysdeps/x86/cpu-features.c: Always include and cet-tunables.h> when CET is enabled. --- diff --git a/ChangeLog b/ChangeLog index 05d05f7d410..cd86d86ab20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-07-17 H.J. Lu + + * sysdeps/x86/cpu-features.c: Always include and + cet-tunables.h> when CET is enabled. + 2018-07-16 H.J. Lu [BZ #21598] diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c index 0627f145e05..8108256c427 100644 --- a/sysdeps/x86/cpu-features.c +++ b/sysdeps/x86/cpu-features.c @@ -30,8 +30,6 @@ extern void TUNABLE_CALLBACK (set_hwcaps) (tunable_val_t *) attribute_hidden; # if CET_ENABLED -# include -# include extern void TUNABLE_CALLBACK (set_x86_ibt) (tunable_val_t *) attribute_hidden; extern void TUNABLE_CALLBACK (set_x86_shstk) (tunable_val_t *) @@ -39,6 +37,11 @@ extern void TUNABLE_CALLBACK (set_x86_shstk) (tunable_val_t *) # endif #endif +#if CET_ENABLED +# include +# include +#endif + static void get_common_indeces (struct cpu_features *cpu_features, unsigned int *family, unsigned int *model,