This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Misaligned .bss section for PE?
- From: "Danny Smith" <dansmister at gmail dot com>
- To: "Zuxy Meng" <zuxy dot meng at gmail dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 3 Jun 2008 15:04:46 +1200
- Subject: Re: Misaligned .bss section for PE?
- References: <g13f6l$t70$1@ger.gmane.org> <g15ap1$2he$1@ger.gmane.org> <g1ll4u$iac$1@ger.gmane.org> <9c03c2dd0805290259p77e2675dyd1a158515fca75f4@mail.gmail.com> <g1lve2$kln$1@ger.gmane.org> <9c03c2dd0805291425n38aeb9b1le9b202d2feeda0b@mail.gmail.com> <g20b00$60l$1@ger.gmane.org>
On Mon, Jun 2, 2008 at 8:28 PM, Zuxy Meng <zuxy.meng@gmail.com> wrote:
> "Danny Smith" <dansmister@gmail.com>
> 写入消息新闻:9c03c2dd0805291425n38aeb9b1le9b202d2feeda0b@mail.gmail.com...
>>>>
>>>> see
>>>> http://sourceware.org/bugzilla/show_bug.cgi?id=5226, in particular the
>>>> testcase in comment #1
>>>>
>>>> Note PE COFF does not support aligned common , so you may need to add
>>>> __attribute__((no_common)) to variable.
>>>>
>>>
>>>
>>> Thanks Danny! I saw that the bug was committed last November and I wonder
>>> if
>>> my problematic as (labeling itself as "GNU assembler (GNU Binutils)
>>> 2.18.50.20080109") has had the fix?
>>>
>>
>> It should. Can you provide a testcase where you are getting unexpected
>> results?
>>
>
>
> I only observe the problem when building mplayer under mingw32, which is
> quite a big program that uses SSE a lot, so a misaligned static leads to
> crashes. I'm still trying to figure out a minimal set.
Is mplayer a multithread app. If so you will need to take extra care
with thread-start functions See gcc info on 'force_align_arg_pointer'
and mingw-user list archive on SSE multithread isues.
Danny
> --
> Zuxy
>
>