Re: same prog, different sizes

Steven Honeyman <[email protected]> Sat, 20 Sep 2014 18:52:59 +0100
Newsgroups gmane.linux.lib.dietlibc
Message-ID <CABz95_B2v3AU-xrhbNB4DmBDAJZ-diLQe_Crxyg2x8czuCSPFQ@mail.gmail.com>
On 20 September 2014 18:36, Jorge Almeida <[email protected]> wrote:
> On Sat, Sep 20, 2014 at 6:32 PM, Steven Honeyman
> <[email protected]> wrote:
>> On 20 September 2014 17:58, Jorge Almeida <[email protected]> wrote:
>>> 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:
>>
>> On your Gentoo i3... am I right in thinking you have a hardened/PaX
>> build environment?
>>
> Nope. It's a standard profile, no fancy
> stuff whatsoever (box is used to backups and compiling some stuff,
> used mainly via ssh, not even X installed)
>
> Thanks
>
> Jorge

Oh well, worth a guess! I just noticed this strange program header
entry (only in the i3 version), which google says has something to do
with PaX. They are both the same binary really, but the i3 has a few
kb of padding on the end (just empty space). I have no idea why; but
I'm sure someone will be able to help you.

...
0x65041580 off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2
         filesz 0x00000000 memsz 0x00000000 flags --- 2800


Thanks,
Steven.