]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgcc/aarch64: also provide AT_HWCAP2 fallback
authorJan Beulich <jbeulich@suse.com>
Mon, 10 Jun 2024 06:47:58 +0000 (08:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 10 Jun 2024 06:47:58 +0000 (08:47 +0200)
Much like AT_HWCAP is already provided in case the platform headers
don't have the value (yet).

libgcc/

* config/aarch64/cpuinfo.c: Provide AT_HWCAP2.

libgcc/config/aarch64/cpuinfo.c

index 544c5516133ec3a554d1222de2ea9d5e6d4c27a9..ec36d1057383bd23260f85a41b9b30b2288622af 100644 (file)
@@ -146,6 +146,9 @@ struct {
 #define HWCAP_PACG (1UL << 31)
 #endif
 
+#ifndef AT_HWCAP2
+#define AT_HWCAP2 26
+#endif
 #ifndef HWCAP2_DCPODP
 #define HWCAP2_DCPODP (1 << 0)
 #endif