hi,
On Tue, Sep 04, 2001 at 04:39:52AM -0800, Ethan Benson wrote:
>
> Is there any possible ways to reduce the size of the mkfs.xfs binary?
>
> I am working on adding support for direct XFS installation to the
> Debian boot-floppies, but the size of mkfs.xfs is proving to be a real
> problem (we are already very tight on space as it is).
>
> from what i can tell by briefly looking at it, libuuid appears to be
> statically linked into this binary? is this correct? making this
> dynamic would help a little (probably not much but i can use every
> kbyte i can get). also its built with -O1 optimization, is there any
> reason for this? would -Os be potentially problematic?
>
yes, you could link dynamically with libuuid, might help
(esp. if you already have mkfs.ext2 on the floppy already,
as this uses the same library). libuuid is not very big
though, so I doubt this will help much in practice.
I have never compiled userspace with -Os, so don't know
whether that will cause issues for you - I have compiled
at -O2 and I seem to recall some gcc versions broke xfs_db
at that optimization level (looked like bad code from gcc)
- in particular this was the 2.95.3 gcc in Debian unstable
several months ago (long gone though).
cheers.
--
Nathan
|