public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] fix msvcc.sh to not pass -safeseh to ml64
       [not found] <1392639562.173471.1280870139836.JavaMail.root@cm-mail03.mozilla.org>
@ 2010-08-03 21:16 ` Dan Witte
  2010-08-03 22:07   ` Neil Rashbrook
  2010-08-05 13:03   ` Anthony Green
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Witte @ 2010-08-03 21:16 UTC (permalink / raw)
  To: libffi-discuss; +Cc: neil

[-- Attachment #1: Type: text/plain, Size: 98 bytes --]

Anthony,

Attached is a patch to fix Win64 builds, since ml64 doesn't like -safeseh.

Cheers,
Dan.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: libffi-ml64-safeseh.diff --]
[-- Type: text/x-patch; name=libffi-ml64-safeseh.diff, Size: 1100 bytes --]

diff --git a/ChangeLog b/ChangeLog
index 2547ad3..7ba744c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-03  Neil Rashbrooke <neil@httl.net>
+
+	* msvcc.sh: Don't pass -safeseh to ml64 because behavior is buggy.
+
 2010-07-22  Dan Witte  <dwitte@mozilla.com>
 
 	* src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
diff --git a/msvcc.sh b/msvcc.sh
index 551c73d..c73cb15 100755
--- a/msvcc.sh
+++ b/msvcc.sh
@@ -46,6 +46,7 @@ args="-nologo"
 md=-MD
 cl="cl"
 ml="ml"
+safeseh="-safeseh"
 output=
 
 while [ $# -gt 0 ]
@@ -63,6 +64,7 @@ do
     -m64)
       cl="cl"   # "$MSVC/x86_amd64/cl"
       ml="ml64" # "$MSVC/x86_amd64/ml64"
+      safeseh=
       shift 1
     ;;
     -O*)
@@ -164,7 +166,7 @@ if [ -n "$assembly" ]; then
     echo "$cl -nologo -EP $includes $defines $src > $ppsrc"
     "$cl" -nologo -EP $includes $defines $src > $ppsrc || exit $?
     output="$(echo $output | sed 's%/F[dpa][^ ]*%%g')"
-    args="-nologo -safeseh $single $output $ppsrc"
+    args="-nologo $safeseh $single $output $ppsrc"
 
     echo "$ml $args"
     eval "\"$ml\" $args"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fix msvcc.sh to not pass -safeseh to ml64
  2010-08-03 21:16 ` [PATCH] fix msvcc.sh to not pass -safeseh to ml64 Dan Witte
@ 2010-08-03 22:07   ` Neil Rashbrook
  2010-08-05 13:03   ` Anthony Green
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Rashbrook @ 2010-08-03 22:07 UTC (permalink / raw)
  To: Dan Witte; +Cc: libffi-discuss

Dan Witte wrote:

>+2010-08-03  Neil Rashbrooke <neil@httl.net>
>
Neil Rashbrook <neil@parkwaycc.co.uk>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fix msvcc.sh to not pass -safeseh to ml64
  2010-08-03 21:16 ` [PATCH] fix msvcc.sh to not pass -safeseh to ml64 Dan Witte
  2010-08-03 22:07   ` Neil Rashbrook
@ 2010-08-05 13:03   ` Anthony Green
  1 sibling, 0 replies; 3+ messages in thread
From: Anthony Green @ 2010-08-05 13:03 UTC (permalink / raw)
  To: Dan Witte; +Cc: libffi-discuss, neil

Dan Witte <dwitte@mozilla.com> writes:

> Anthony,
>
> Attached is a patch to fix Win64 builds, since ml64 doesn't like
> -safeseh.

Thanks - applied (with Neil's updated email address).

AG


>
> Cheers,
> Dan.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-05 13:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1392639562.173471.1280870139836.JavaMail.root@cm-mail03.mozilla.org>
2010-08-03 21:16 ` [PATCH] fix msvcc.sh to not pass -safeseh to ml64 Dan Witte
2010-08-03 22:07   ` Neil Rashbrook
2010-08-05 13:03   ` Anthony Green

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).