aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/EN-23:08/vnet.patch
blob: e3ae10b6a5e7acdaf9a5e5db2b20dc15a6e409c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- sys/conf/kmod.mk.orig
+++ sys/conf/kmod.mk
@@ -168,6 +168,13 @@
 CFLAGS+=	-fPIC
 .endif
 
+.if ${MACHINE_CPUARCH} == "aarch64"
+# https://bugs.freebsd.org/264094
+# lld >= 14 and recent GNU ld can relax adrp+add and adrp+ldr instructions,
+# which breaks VNET.
+LDFLAGS+=	--no-relax
+.endif
+
 # Temporary workaround for PR 196407, which contains the fascinating details.
 # Don't allow clang to use fpu instructions or registers in kernel modules.
 .if ${MACHINE_CPUARCH} == arm