Page MenuHomeFreeBSD

D41156.id125068.diff
No OneTemporary

D41156.id125068.diff

diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -170,6 +170,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

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 25, 1:52 AM (14 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37201909
Default Alt Text
D41156.id125068.diff (533 B)

Event Timeline