Skip to content
This repository
tree: 211060eb8f
Fetching contributors…

Cannot retrieve contributors at this time

file 37 lines (33 sloc) 1.226 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Index: libffi/ChangeLog
===================================================================
--- libffi.orig/ChangeLog
+++ libffi/ChangeLog
@@ -1,5 +1,8 @@
-2012-01-23 Anthony Green <green@moxielogic.com>
- Chris Young <cdyoung@ntlworld.com>
+2012-01-23 Uros Bizjak <ubizjak@gmail.com>
+
+ * src/alpha/ffi.c (ffi_prep_closure_loc): Check for bad ABI.
+
+2012-01-23 Chris Young <cdyoung@ntlworld.com>
 
  * configure.ac: Add Amiga support.
  * configure: Rebuilt.
Index: libffi/src/alpha/ffi.c
===================================================================
--- libffi.orig/src/alpha/ffi.c
+++ libffi/src/alpha/ffi.c
@@ -1,5 +1,6 @@
 /* -----------------------------------------------------------------------
- ffi.c - Copyright (c) 1998, 2001, 2007, 2008 Red Hat, Inc.
+ ffi.c - Copyright (c) 2012 Anthony Green
+ Copyright (c) 1998, 2001, 2007, 2008 Red Hat, Inc.
    
    Alpha Foreign Function Interface
 
@@ -178,6 +179,9 @@ ffi_prep_closure_loc (ffi_closure* closu
 {
   unsigned int *tramp;
 
+ if (cif->abi != FFI_OSF)
+ return FFI_BAD_ABI;
+
   tramp = (unsigned int *) &closure->tramp[0];
   tramp[0] = 0x47fb0401; /* mov $27,$1 */
   tramp[1] = 0xa77b0010; /* ldq $27,16($27) */
Something went wrong with that request. Please try again.