Override these two booters with -Oz for clang since it produces smaller code here.diff -r1.4 -r1.5 src/sys/arch/i386/stand/bootxx/bootxx_msdos/Makefile
(christos)
--- src/sys/arch/i386/stand/bootxx/bootxx_msdos/Makefile 2020/01/22 06:13:18 1.4
+++ src/sys/arch/i386/stand/bootxx/bootxx_msdos/Makefile 2023/08/30 18:46:51 1.5
@@ -1,7 +1,11 @@ | @@ -1,7 +1,11 @@ | |||
1 | # $NetBSD: Makefile,v 1.4 2020/01/22 06:13:18 martin Exp $ | 1 | # $NetBSD: Makefile,v 1.5 2023/08/30 18:46:51 christos Exp $ | |
2 | ||||
3 | NOMAN=yes | |||
4 | .include <bsd.init.mk> | |||
2 | 5 | |||
3 | PROG= bootxx_msdos | 6 | PROG= bootxx_msdos | |
4 | FS= dosfs | 7 | FS= dosfs | |
5 | CPPFLAGS=-DBOOT_FROM_FAT -DTERSE_ERROR -DSA_DOSFS_NO_BIG_PART_SUPPORT | 8 | CPPFLAGS=-DBOOT_FROM_FAT -DTERSE_ERROR -DSA_DOSFS_NO_BIG_PART_SUPPORT | |
6 | 9 | |||
7 | .include <../Makefile.bootxx> | 10 | .include <../Makefile.bootxx> | |
11 | OPT_SIZE.clang += -Oz |
--- src/sys/arch/i386/stand/bootxx/bootxx_ustarfs/Makefile 2009/11/18 21:02:16 1.3
+++ src/sys/arch/i386/stand/bootxx/bootxx_ustarfs/Makefile 2023/08/30 18:46:52 1.4
@@ -1,7 +1,11 @@ | @@ -1,7 +1,11 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2009/11/18 21:02:16 dsl Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2023/08/30 18:46:52 christos Exp $ | |
2 | ||||
3 | NOMAN=yes | |||
4 | .include <bsd.init.mk> | |||
2 | 5 | |||
3 | FS=ustarfs | 6 | FS=ustarfs | |
4 | 7 | |||
5 | BOOTXX_SECTORS=16 | 8 | BOOTXX_SECTORS=16 | |
6 | 9 | |||
7 | .include <../Makefile.bootxx> | 10 | .include <../Makefile.bootxx> | |
11 | OPT_SIZE.clang += -Oz |