weirdly large filesize of winegcc generated shared object

Dmitry Timoshkov dmitry at baikal.ru
Fri Feb 17 07:48:32 CST 2012


Pengyu CHEN <cpy.prefers.you at gmail.com> wrote:

> Then I compiled them using 'winegcc a.c a.spec -shared -fPIC -m32', and
> then found the resulting file a.out.so is about 70KB in size:
> [pengyu at pengyu-Studio-1747 tmp]$ls a.out.so -l
> -rwxr-xr-x 1 pengyu users 75893 Feb 17 19:16 a.out.so

PE header needs to be aligned in a 64k boundary, and compiler fills
remaining space with zeros.

-- 
Dmitry.



More information about the wine-devel mailing list