[PATCH v3] Fix x86-64/cet: Make CET feature check specific to Linux/x86
Sam James
sam@gentoo.org
Tue Dec 17 12:31:13 GMT 2024
"H.J. Lu" <hjl.tools@gmail.com> writes:
> Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
> ---
> sysdeps/unix/sysv/linux/x86/bits/platform/features.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sysdeps/unix/sysv/linux/x86/bits/platform/features.h b/sysdeps/unix/sysv/linux/x86/bits/platform/features.h
> index 7704febe92..1e63743e3f 100644
> --- a/sysdeps/unix/sysv/linux/x86/bits/platform/features.h
> +++ b/sysdeps/unix/sysv/linux/x86/bits/platform/features.h
> @@ -28,7 +28,7 @@ enum
> x86_feature_1_shstk = 1U << 1
> };
>
> -static __inline__ _Bool
> +static __inline__ bool
> x86_cpu_cet_active (unsigned int __index)
> {
> #ifdef __x86_64__
I don't follow. The other definitions of x86_cpu_cet_active use _Bool
still. Can you elaborate in the commit message? Thanks.
More information about the Libc-alpha
mailing list