Adventures with gcc: code vs object-code size
Garance A Drosihn
drosih at rpi.edu
Sun Mar 21 16:53:06 PST 2004
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.
--
Garance Alistair Drosehn = gad at gilead.netel.rpi.edu
Senior Systems Programmer or gad at freebsd.org
Rensselaer Polytechnic Institute or drosih at rpi.edu
More information about the freebsd-hackers
mailing list