Preventing alignment, this is how my stage2 shrunk (it has both
serial and netboot in)
-rw-rw-r-- 1 rubini staff 90600 Sep 6 12:47 stage2/stage2.align
-rw-rw-r-- 1 rubini staff 84396 Sep 6 12:48 stage2/stage2
I think it's worth doing (if I could use those 6kB, I'd put in
a real printf :)
Index: configure.in
===================================================================
RCS file: /cvs/grub/configure.in,v
retrieving revision 1.50
diff -u -d -u -r1.50 configure.in
--- configure.in 2000/08/30 07:00:15 1.50
+++ configure.in 2000/09/06 10:50:19
@@ -95,6 +95,8 @@
# Enforce coding standards.
CPPFLAGS="$CPPFLAGS -Wall -Wmissing-prototypes -Wunused -Wshadow"
CPPFLAGS="$CPPFLAGS -Wpointer-arith"
+# Force no-alignment to save space
+CPPFLAGS="$CPPFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
AC_CACHE_CHECK([whether -Wundef works], undef_flag, [
saved_CPPFLAGS=$CPPFLAGS