Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Sep 2007 17:04:55 +0300
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        Yar Tikhiy <yar@comp.chem.msu.su>
Cc:        Tim Kientzle <kientzle@freebsd.org>, hackers@freebsd.org
Subject:   Re: Useful tools missing from /rescue
Message-ID:  <20070903140454.GB5265@kobe.laptop>
In-Reply-To: <20070903132009.GI30502@comp.chem.msu.su>
References:  <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> <20070903001803.GA8098@kobe.laptop> <20070903132009.GI30502@comp.chem.msu.su>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2007-09-03 17:20, Yar Tikhiy <yar@comp.chem.msu.su> wrote:
>On Mon, Sep 03, 2007 at 03:18:03AM +0300, Giorgos Keramidas wrote:
>> Running nm(1) on the binaries, I see that they have the same symbols
>> though:
>>
>> $ nm -S chmod | awk '{print $2,$3,$4}' | sort > /tmp/symbols.chmod
>> $ nm -S chown | awk '{print $2,$3,$4}' | sort > /tmp/symbols.chown
>> $ diff -u /tmp/symbols.chmod /tmp/symbols.chown
>> $
>>
>> Does this mean that adding chown to the already crunched binary will not
>> cause a lot of bloat because of symbols/functions private to chown?
>
> The difference in the static binary sizes is weird, but I don't
> have time now to dig the issue deeper, sorry.  The rescue binary
> grows just slightly when chown is added to it:
>
> -r-xr-xr-x  121 root  wheel  3715096  1 ??? 10:22 /rescue.old/rescue
> -r-xr-xr-x  122 root  wheel  3718192  3 ??? 17:17 /rescue/rescue

It's probably a side-effect of the fact my userland was built with
DEBUG_FLAGS='-g' and this was compiled without a full buildworld.
Thus the binaries I compiled used debugging versions of the libs
from /usr/lib but their own source was built with DEBUG_FLAGS=''.

Nevermind about the binary difference in sizes; it's probably a local
build-related issue.  It's good to know that rescue doesn't grow a
lot anyway :)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070903140454.GB5265>