⬢ DragonFlyBSD Kernel Audit
DF-5474 / fix.diff
← back to finding ↓ download raw
--- a/sys/platform/vkernel64/conf/Makefile	2026-10-06 02:42:20.213506993 +0000
+++ b/sys/platform/vkernel64/conf/Makefile	2026-10-06 02:42:20.213506993 +0000
@@ -20,7 +20,7 @@
 # Additionally, the max-page-size is set to 0x200000 regardless of the ld
 # default setting.
 #
-SYSTEM_LD= @${CC} ${DEBUG} -Wl,--export-dynamic -o ${.TARGET} ${SYSTEM_OBJS} vers.o -pthread
+SYSTEM_LD= @${CC} ${DEBUG} -Wl,--export-dynamic -o ${.TARGET} ${SYSTEM_OBJS} vers.o -pthread -Wl,--defsym,__build_id_start=0 -Wl,--defsym,__build_id_end=0
 SYSTEM_LD+= -Wl,--hash-style=sysv
 SYSTEM_LD+= -Wl,-z,max-page-size=0x200000