Module Name: src
Committed By: rin
Date: Mon Nov 6 07:02:17 UTC 2023
Modified Files:
src/sys/arch/i386/stand/dosboot: Makefile
Log Message:
x86/dosboot: Do not page-align data segment
4K alignment is too heavy burden for COM executable with 64K limit :)
Fix binary size overflow for clang/amd64.
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/i386/stand/dosboot/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/stand/dosboot/Makefile
diff -u src/sys/arch/i386/stand/dosboot/Makefile:1.34 src/sys/arch/i386/stand/dosboot/Makefile:1.35
--- src/sys/arch/i386/stand/dosboot/Makefile:1.34 Mon Nov 6 06:53:52 2023
+++ src/sys/arch/i386/stand/dosboot/Makefile Mon Nov 6 07:02:17 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2023/11/06 06:53:52 rin Exp $
+# $NetBSD: Makefile,v 1.35 2023/11/06 07:02:17 rin Exp $
S= ${.CURDIR}/../../../..
@@ -34,6 +34,9 @@ I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes
# DOS command line arguments are located at 0x0000.
COPTS.doscommain.c+= -fno-delete-null-pointer-checks
+# Do not page-align data segment.
+LDFLAGS+= -Wl,-N
+
VERSIONFILE= ${.CURDIR}/version
.include <bsd.init.mk>