Re: same prog, different sizes

Jorge Almeida <[email protected]> Sat, 20 Sep 2014 17:58:46 +0100
Newsgroups gmane.linux.lib.dietlibc
Message-ID <CAKpSnpLyA=j4Z53aDHD8bSHuf0CmngHk15fu53ePS6aHC8uA7A@mail.gmail.com>
On Wed, Sep 17, 2014 at 1:35 PM, Felix von Leitner
<[email protected]> wrote:
> Thus spake Jorge Almeida ([email protected]):
>> I will next saturday, can't get to the i3 before that. But this thread
>> was about the much bigger binaries in the i3, with diet 0.33. I'm at a
>> loss there.
>
> Possibilities that come to mind:
>
>   1) different compiler options (you edited Makefile)
>   2) different dietlibc flags (you edited dietfeatures.h)
>   3) different compiler
>

I sent to Google drive two compiled (unstripped) versions of the same
program, in case some elfwise person would take a look and find
something fishy:


srvmng_dietlibc_atom:
dietlibc-0.33
gcc 4.8.2
https://drive.google.com/file/d/0B42qvLQhgjZCTkUwOVo1NmEtcWM/edit?usp=sharing

srvmng_dietlibc_i3
dietlibc-0.33
gcc 4.8.3
https://drive.google.com/file/d/0B42qvLQhgjZCMHVvMm9QeW02cXc/edit?usp=sharing

Both were compiled with:
 diet gcc -fdata-sections -ffunction-sections -Wl,--gc-sections
-fno-asynchronous-unwind-tables -std=c99 -Os -march=i686 -pipe
-fomit-frame-pointer -Wall -o srvmng srvmng.c

THNX

Jorge