Page MenuHomeFreeBSD

D33061.id98751.diff
No OneTemporary

D33061.id98751.diff

Index: security/openssl/files/patch-crypto_armcap.c
===================================================================
--- /dev/null
+++ security/openssl/files/patch-crypto_armcap.c
@@ -0,0 +1,30 @@
+--- crypto/armcap.c.orig 2021-11-19 15:20:18 UTC
++++ crypto/armcap.c
+@@ -107,8 +107,12 @@ static unsigned long getauxval(unsigned long key)
+ * AArch64 used AT_HWCAP.
+ */
+ # if defined(__arm__) || defined (__arm)
+-# define HWCAP 16
++# if defined(__FreeBSD__)
++# define HWCAP AT_HWCAP
++# else
++# define HWCAP 16
+ /* AT_HWCAP */
++# endif
+ # define HWCAP_NEON (1 << 12)
+
+ # define HWCAP_CE 26
+@@ -118,8 +122,12 @@ static unsigned long getauxval(unsigned long key)
+ # define HWCAP_CE_SHA1 (1 << 2)
+ # define HWCAP_CE_SHA256 (1 << 3)
+ # elif defined(__aarch64__)
+-# define HWCAP 16
++# if defined(__FreeBSD__)
++# define HWCAP AT_HWCAP
++# else
++# define HWCAP 16
+ /* AT_HWCAP */
++# endif
+ # define HWCAP_NEON (1 << 1)
+
+ # define HWCAP_CE HWCAP

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 2:34 PM (19 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14536675
Default Alt Text
D33061.id98751.diff (1 KB)

Event Timeline