aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libffi/files
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-08-10 08:08:48 +0800
committersteve <steve@FreeBSD.org>1998-08-10 08:08:48 +0800
commit661c558d39b3fb9e073a78396dae1337cb316b3a (patch)
tree711e93ba1ae595cf4d36b24bbdbdeece73b7a177 /devel/libffi/files
parent4114923080f4774e2d873db7296f861f27b821d0 (diff)
downloadfreebsd-ports-gnome-661c558d39b3fb9e073a78396dae1337cb316b3a.tar.gz
freebsd-ports-gnome-661c558d39b3fb9e073a78396dae1337cb316b3a.tar.zst
freebsd-ports-gnome-661c558d39b3fb9e073a78396dae1337cb316b3a.zip
Initial import of libffi version 1.18.
Foreign Function Interface. PR: 6943 Submitted by: Horance Chou <horance@freedom.ie.cycu.edu.tw>
Diffstat (limited to 'devel/libffi/files')
-rw-r--r--devel/libffi/files/patch-aa10
-rw-r--r--devel/libffi/files/patch-ab44
2 files changed, 54 insertions, 0 deletions
diff --git a/devel/libffi/files/patch-aa b/devel/libffi/files/patch-aa
new file mode 100644
index 000000000000..832b44066d5a
--- /dev/null
+++ b/devel/libffi/files/patch-aa
@@ -0,0 +1,10 @@
+--- configure.orig Sun Jun 14 14:42:47 1998
++++ configure Sun Jun 14 14:33:17 1998
+@@ -1234,6 +1234,7 @@
+ case "$host" in
+ mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
+ i*86-pc-linux*) TARGET=X86; TARGETDIR=x86;;
++i*86-unknown-freebsd*) TARGET=X86; TARGETDIR=x86;;
+ sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
+ sparc-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
+ alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; TARGETDIR=alpha;;
diff --git a/devel/libffi/files/patch-ab b/devel/libffi/files/patch-ab
new file mode 100644
index 000000000000..01d32630e0f9
--- /dev/null
+++ b/devel/libffi/files/patch-ab
@@ -0,0 +1,44 @@
+--- src/x86/sysv.S.orig Sun Jun 14 14:43:22 1998
++++ src/x86/sysv.S Sun Jun 14 14:48:35 1998
+@@ -30,14 +30,14 @@
+
+ .text
+
+-.globl ffi_prep_args
++.globl _ffi_prep_args
+
+ # This assumes we are using gas.
+- .balign 16
+-.globl ffi_call_SYSV
+- .type ffi_call_SYSV,@function
++ .align 4
++.globl _ffi_call_SYSV
++ .type _ffi_call_SYSV,@function
+
+-ffi_call_SYSV:
++_ffi_call_SYSV:
+ pushl %ebp
+ movl %esp,%ebp
+
+@@ -47,10 +47,10 @@
+
+ movl %esp,%eax
+
+- # Place all of the ffi_prep_args in position
++ # Place all of the _ffi_prep_args in position
+ pushl 12(%ebp)
+ pushl %eax
+- call ffi_prep_args
++ call _ffi_prep_args
+
+ # Return stack to previous state and call the function
+ addl $8,%esp
+@@ -110,6 +110,6 @@
+ movl %ebp,%esp
+ popl %ebp
+ ret
+-.ffi_call_SYSV_end:
+- .size ffi_call_SYSV,.ffi_call_SYSV_end-ffi_call_SYSV
++._ffi_call_SYSV_end:
++ .size _ffi_call_SYSV,._ffi_call_SYSV_end-_ffi_call_SYSV
+