Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Mar 2004 19:35:46 -0500
From:      Don Bowman <don@sandvine.com>
To:        'Garance A Drosihn' <drosih@rpi.edu>, Kip Macy <kmacy@netapp.com>
Cc:        hackers@freebsd.org
Subject:   RE: Adventures with gcc: code vs object-code size
Message-ID:  <FE045D4D9F7AED4CBFF1B3B813C85337045D8681@mail.sandvine.com>

next in thread | raw e-mail | index | archive | help
From: Garance A Drosihn [mailto:drosih@rpi.edu]
> At 2:52 PM -0800 3/21/04, Kip Macy wrote:
> >The heuristics vary from platform to platform - what does
> >"objdump -d" show?
> 
> Based on what I see from that, the 'ps.o' which has the extra
> strcmp is about 40 bytes larger than the one without it.  And
> now that you mention it, doing a plain 'ls -l' of ps.o shows
> that it is only 40 bytes larger.  It's when you combine that
> file with the other *.o files, and strip it, that the final
> result ends up 3940 bytes larger.
> 
> So maybe this has something to do with how linking is done
> for ELF modules.  Unfortunately, I need to be concentrating
> on something else right now...

Its not just bumping you up another module 4K pages? The 
linker aligns text, data, bss, rodata, etc.



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