From: jca Date: Sun, 14 Jul 2024 11:36:54 +0000 (+0000) Subject: Actually provide *definitions* for hwcap & hwcap2 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f63750b464c955a6d2cc482053009057b2bfb6b9;p=openbsd Actually provide *definitions* for hwcap & hwcap2 Double checked by kettenis@ Sorry for the time window with breakage visible on arm64 and riscv64. :-/ --- 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.