Adventures with gcc: code vs object-code size

Don Bowman don at sandvine.com
Sun Mar 21 16:59:12 PST 2004


From: Garance A Drosihn [mailto:drosih at rpi.edu]
> At 7:35 PM -0500 3/21/04, Don Bowman wrote:
> >From: Garance A Drosihn [mailto:drosih at rpi.edu]
> >  >
> >>  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...
> >
> >It's not just bumping you up another module 4K pages? The
> >linker aligns text, data, bss, rodata, etc.
> 
> (65) ls -l /bin/ps*
> -r-xr-xr-x  1 root  wheel  27100 Mar 20 14:29 /bin/ps
> -r-xr-xr-x  1 root  wheel  27296 Mar 21 18:21 /bin/ps-sanscmp
> -r-xr-xr-x  1 root  wheel  31204 Mar 21 19:46 /bin/ps-withcmp
> 
> The first one is the `ps' before all of my recent changes, the
> second is all of the changes except for that strcmp(), and the
> third adds the strcmp.

and objdump --headers shows?


More information about the freebsd-hackers mailing list