From f63750b464c955a6d2cc482053009057b2bfb6b9 Mon Sep 17 00:00:00 2001 From: jca Date: Sun, 14 Jul 2024 11:36:54 +0000 Subject: [PATCH] Actually provide *definitions* for hwcap & hwcap2 Double checked by kettenis@ Sorry for the time window with breakage visible on arm64 and riscv64. :-/ --- sys/kern/exec_elf.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c index 18398d887f5..2976afb7ada 100644 --- a/sys/kern/exec_elf.c +++ b/sys/kern/exec_elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.c,v 1.187 2024/07/14 11:14:29 jca Exp $ */ +/* $OpenBSD: exec_elf.c,v 1.188 2024/07/14 11:36:54 jca Exp $ */ /* * Copyright (c) 1996 Per Fogelstrom @@ -924,6 +924,14 @@ bad: return (error); } +#ifdef __HAVE_CPU_HWCAP +unsigned long hwcap; +#endif /* __HAVE_CPU_HWCAP */ + +#ifdef __HAVE_CPU_HWCAP2 +unsigned long hwcap2; +#endif /* __HAVE_CPU_HWCAP2 */ + /* * Phase II of load. It is now safe to load the interpreter. Info collected * when loading the program is available for setup of the interpreter. -- 2.20.1