[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Disable some functions unused in stage 1.5

From: Pavel Roskin
Subject: [PATCH] Disable some functions unused in stage 1.5
Date: Sun, 16 May 2004 11:48:10 -0400 (EDT)


"make check" fails in the latest CVS version.  ufs2_stage1_5 is longer
than 7168 bytes (it's 7348 bytes for me).  I'm using Debian unstable with
gcc 3.3.3.  I believe new versions of gcc optimize primarily for speed
regardless of flags.

I used the unrefglobals script to find unreferenced functions:

The functions disabled in this patch are not everything that can be done
to reduce the size of the stage 1.5 binaries, but their elimination is
enough to make ufs2_stage1_5 7124 bytes long, slightly below the limit.


        * stage2/char_io.c (safe_parse_maxint): Disable for stage 1.5.
        (grub_tolower): Disable for stage 1.5 except fat_stage1_5.
        (grub_memcmp): Disable for stage 1.5 except iso9660_stage1_5.

Pavel Roskin

Attachment: reduce_size.diff
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]