Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 18 Nov 2012 19:36:44 -0500
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: debloating data, bss

On Sun, Nov 18, 2012 at 11:59:12PM +0100, Szabolcs Nagy wrote:
> * Rich Felker <dalias@...ifal.cx> [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)

Very odd. That's what I counted too, and what the total looks like it
should be based on "nm --size". Perhaps gcc is adding some
padding/alignment to the data segment?

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.