[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 07/20] w64: Fix definition of setjmp
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH 07/20] w64: Fix definition of setjmp |
Date: |
Sun, 15 Apr 2012 17:18:19 +0000 |
On Sun, Apr 15, 2012 at 17:09, Stefan Weil <address@hidden> wrote:
> Am 15.04.2012 19:02, schrieb Blue Swirl:
>
>> On Sun, Apr 15, 2012 at 14:13, Stefan Weil <address@hidden> wrote:
>>>
>>> The default definition of setjmp which is implemented in MinGW-w64
>>> cannot be used with programs like QEMU which call longjmp from
>>> code without structured exception handling (SEH).
>>
>>
>> We're currently compiling QEMU with -no-seh, is that correct for Mingw64?
>
>
>
> Yes, that's correct. This code in configure is used for w32 and for w64:
>
> # Use ASLR, no-SEH and DEP if available
> if test "$mingw32" = "yes" ; then
> for flag in --dynamicbase --no-seh --nxcompat; do
> if $ld --help 2>/dev/null | grep ".$flag" >/dev/null 2>/dev/null ;
> then
> LDFLAGS="-Wl,$flag $LDFLAGS"
> fi
> done
> fi
>
> See resulting file:
>
> bin/debug/w64/config-host.mak:LDFLAGS=-Wl,--nxcompat -Wl,--no-seh
> -Wl,--dynamicbase -Wl,--warn-common -m64 -g
Yes, but I meant that since Mingw64 uses SEH, does -Wl,--no-seh
conflict with Mingw64 SEH usage somehow? If yes, should we disable
no-seh for Mingw64 and could we also use plain setjmp() then?
>
> Regards,
> Stefan W.
>
- [Qemu-devel] [PATCH 20/20] block: Avoid compiler warning for w64, (continued)
- [Qemu-devel] [PATCH 20/20] block: Avoid compiler warning for w64, Stefan Weil, 2012/04/15
- [Qemu-devel] [PATCH 18/20] nbd: Fix compiler warning (w64), Stefan Weil, 2012/04/15
- [Qemu-devel] [PATCH 15/20] target-ppc: Fix type casts for w64 (uintptr_t), Stefan Weil, 2012/04/15
- [Qemu-devel] [PATCH 17/20] disas: Replace 'unsigned long' by 'uintptr_t', Stefan Weil, 2012/04/15
- [Qemu-devel] [PATCH 07/20] w64: Fix definition of setjmp, Stefan Weil, 2012/04/15
[Qemu-devel] [PATCH 10/20] softmmu: Use uintptr_t for physaddr, Stefan Weil, 2012/04/15
[Qemu-devel] [PATCH 04/20] w64: Fix data types in cpu-all.h, exec.c, Stefan Weil, 2012/04/15