Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167727309
D41156.id125068.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
533 B
Referenced Files
None
Subscribers
None
D41156.id125068.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D41156: Work around VNET and DPCPU related panics on aarch64
Attached
Detach File
Event Timeline
Log In to Comment