From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2310 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: debloating data, bss Date: Sun, 18 Nov 2012 23:59:12 +0100 Message-ID: <20121118225912.GN12537@port70.net> References: <20121118210353.GA4844@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1353279566 24817 80.91.229.3 (18 Nov 2012 22:59:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Nov 2012 22:59:26 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2311-gllmg-musl=m.gmane.org@lists.openwall.com Sun Nov 18 23:59:37 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TaDpu-00037X-RM for gllmg-musl@plane.gmane.org; Sun, 18 Nov 2012 23:59:34 +0100 Original-Received: (qmail 10131 invoked by uid 550); 18 Nov 2012 22:59:24 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 10123 invoked from network); 18 Nov 2012 22:59:24 -0000 Content-Disposition: inline In-Reply-To: <20121118210353.GA4844@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2310 Archived-At: * Rich Felker [2012-11-18 16:03:53 -0500]: > > 908 160 12 1080 438 random.o (ex lib/libc.a) > > Unfortunately I think random really does have that much state... > interestingly the data segment has different size here (i386, gcc-4.4.3, default config): $ size libc.a |grep random 841 140 12 993 3e1 random.o (ex libc.a) and looking into the code it seems there is indeed 140 bytes of initialized static data (and 12bytes of zero)