|
From: | Stefan Weil |
Subject: | Re: [Qemu-devel] [PATCH 07/20] w64: Fix definition of setjmp |
Date: | Sun, 15 Apr 2012 19:09:21 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Thunderbird/3.1.20 |
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; doif $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
Regards, Stefan W.
[Prev in Thread] | Current Thread | [Next in Thread] |