Pengyu CHEN <cpy.prefers....@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@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.