Subject: Re: gcc -fPIC/-fpic and 'const'
To: Todd Vierling <tv@wasabisystems.com>
From: Jaromír <jdolecek@netbsd.org>
List: tech-userlevel
Date: 03/01/2001 23:19:33
Todd Vierling wrote:
> Hm?  In the default output of the GNU-based size(1) ("BSD style"), I get:

I get

text    data    bss     dec     hex     filename
5390    1080    0       6470    1946    cstools.o
 
with -fPIC vs.

text    data    bss     dec     hex     filename
6202    0       0       6202    183a    cstools.o

without -fPIC for the file where I noticed the issue.

Similarily, if I compare e.g. errlist.so and errlist.o from
libc build (i386), I get:

text    data    bss     dec     hex     filename
2428    0       0       2428    97c     errlist.o
2108    320     0       2428    97c     errlist.so

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
@@@@  Wanna a real operating system ? Go and get NetBSD, dammit!  @@@@