Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 1 | Status |
| 2 | ====== |
| 3 | |
Anthony Green | 8d5debc | 2014-11-12 08:04:51 -0500 | [diff] [blame] | 4 | libffi-4?? was released on TBD. Check the libffi web |
Anthony Green | 67c0c07 | 2014-11-11 07:30:49 -0500 | [diff] [blame] | 5 | page for updates: <URL:http://sourceware.org/libffi/>. |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 6 | |
| 7 | |
| 8 | What is libffi? |
| 9 | =============== |
| 10 | |
| 11 | Compilers for high level languages generate code that follow certain |
| 12 | conventions. These conventions are necessary, in part, for separate |
| 13 | compilation to work. One such convention is the "calling |
| 14 | convention". The "calling convention" is essentially a set of |
| 15 | assumptions made by the compiler about where function arguments will |
| 16 | be found on entry to a function. A "calling convention" also specifies |
| 17 | where the return value for a function is found. |
| 18 | |
| 19 | Some programs may not know at the time of compilation what arguments |
| 20 | are to be passed to a function. For instance, an interpreter may be |
| 21 | told at run-time about the number and types of arguments used to call |
| 22 | a given function. Libffi can be used in such programs to provide a |
| 23 | bridge from the interpreter program to compiled code. |
| 24 | |
| 25 | The libffi library provides a portable, high level programming |
| 26 | interface to various calling conventions. This allows a programmer to |
| 27 | call any function specified by a call interface description at run |
| 28 | time. |
| 29 | |
| 30 | FFI stands for Foreign Function Interface. A foreign function |
| 31 | interface is the popular name for the interface that allows code |
| 32 | written in one language to call code written in another language. The |
| 33 | libffi library really only provides the lowest, machine dependent |
| 34 | layer of a fully featured foreign function interface. A layer must |
| 35 | exist above libffi that handles type conversions for values passed |
| 36 | between the two languages. |
| 37 | |
| 38 | |
| 39 | Supported Platforms |
| 40 | =================== |
| 41 | |
Anthony Green | 0cfe60e | 2009-12-29 10:06:04 -0500 | [diff] [blame] | 42 | Libffi has been ported to many different platforms. |
| 43 | For specific configuration details and testing status, please |
| 44 | refer to the wiki page here: |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 45 | |
Anthony Green | 67c0c07 | 2014-11-11 07:30:49 -0500 | [diff] [blame] | 46 | http://www.moxielogic.org/wiki/index.php?title=Libffi_3.2 |
Anthony Green | 0cfe60e | 2009-12-29 10:06:04 -0500 | [diff] [blame] | 47 | |
| 48 | At the time of release, the following basic configurations have been |
| 49 | tested: |
| 50 | |
Anthony Green | 9742f91 | 2013-01-21 07:03:41 -0500 | [diff] [blame] | 51 | |-----------------+------------------+-------------------------| |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 52 | | Architecture | Operating System | Compiler | |
Anthony Green | 9742f91 | 2013-01-21 07:03:41 -0500 | [diff] [blame] | 53 | |-----------------+------------------+-------------------------| |
Anthony Green | 6ae046c | 2013-11-30 21:06:51 -0500 | [diff] [blame] | 54 | | AArch64 (ARM64) | iOS | Clang | |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 55 | | AArch64 | Linux | GCC | |
| 56 | | Alpha | Linux | GCC | |
| 57 | | Alpha | Tru64 | GCC | |
Mischa Jonker | b082e15 | 2013-06-10 16:19:33 +0200 | [diff] [blame] | 58 | | ARC | Linux | GCC | |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 59 | | ARM | Linux | GCC | |
| 60 | | ARM | iOS | GCC | |
| 61 | | AVR32 | Linux | GCC | |
| 62 | | Blackfin | uClinux | GCC | |
| 63 | | HPPA | HPUX | GCC | |
| 64 | | IA-64 | Linux | GCC | |
| 65 | | M68K | FreeMiNT | GCC | |
Anthony Green | ff06269 | 2013-10-08 06:32:18 -0400 | [diff] [blame] | 66 | | M68K | Linux | GCC | |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 67 | | M68K | RTEMS | GCC | |
Anthony Green | ff06269 | 2013-10-08 06:32:18 -0400 | [diff] [blame] | 68 | | M88K | OpenBSD/mvme88k | GCC | |
Anthony Green | 2fb527a | 2013-03-16 07:46:38 -0400 | [diff] [blame] | 69 | | Meta | Linux | GCC | |
Anthony Green | aeb8719 | 2013-01-21 07:37:30 -0500 | [diff] [blame] | 70 | | MicroBlaze | Linux | GCC | |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 71 | | MIPS | IRIX | GCC | |
| 72 | | MIPS | Linux | GCC | |
| 73 | | MIPS | RTEMS | GCC | |
| 74 | | MIPS64 | Linux | GCC | |
Anthony Green | ff06269 | 2013-10-08 06:32:18 -0400 | [diff] [blame] | 75 | | Moxie | Bare metal | GCC | |
Sandra Loosemore | 16b93a2 | 2013-10-15 15:33:59 -0400 | [diff] [blame] | 76 | | Nios II | Linux | GCC | |
Sebastian Macke | 0f316ab | 2014-09-27 00:19:15 +0000 | [diff] [blame] | 77 | | OpenRISC | Linux | GCC | |
Anthony Green | 10e7722 | 2013-02-10 08:47:26 -0500 | [diff] [blame] | 78 | | PowerPC 32-bit | AIX | IBM XL C | |
| 79 | | PowerPC 64-bit | AIX | IBM XL C | |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 80 | | PowerPC | AMIGA | GCC | |
| 81 | | PowerPC | Linux | GCC | |
| 82 | | PowerPC | Mac OSX | GCC | |
| 83 | | PowerPC | FreeBSD | GCC | |
Anthony Green | 10e7722 | 2013-02-10 08:47:26 -0500 | [diff] [blame] | 84 | | PowerPC 64-bit | FreeBSD | GCC | |
Anthony Green | 2f45082 | 2013-11-18 06:52:29 -0500 | [diff] [blame] | 85 | | PowerPC 64-bit | Linux ELFv1 | GCC | |
| 86 | | PowerPC 64-bit | Linux ELFv2 | GCC | |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 87 | | S390 | Linux | GCC | |
| 88 | | S390X | Linux | GCC | |
| 89 | | SPARC | Linux | GCC | |
| 90 | | SPARC | Solaris | GCC | |
Anthony Green | bff052d | 2013-01-11 10:24:32 -0500 | [diff] [blame] | 91 | | SPARC | Solaris | Oracle Solaris Studio C | |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 92 | | SPARC64 | Linux | GCC | |
| 93 | | SPARC64 | FreeBSD | GCC | |
Anthony Green | bff052d | 2013-01-11 10:24:32 -0500 | [diff] [blame] | 94 | | SPARC64 | Solaris | Oracle Solaris Studio C | |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 95 | | TILE-Gx/TILEPro | Linux | GCC | |
Anthony Green | ff06269 | 2013-10-08 06:32:18 -0400 | [diff] [blame] | 96 | | VAX | OpenBSD/vax | GCC | |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 97 | | X86 | FreeBSD | GCC | |
Anthony Green | 10e7722 | 2013-02-10 08:47:26 -0500 | [diff] [blame] | 98 | | X86 | GNU HURD | GCC | |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 99 | | X86 | Interix | GCC | |
| 100 | | X86 | kFreeBSD | GCC | |
| 101 | | X86 | Linux | GCC | |
| 102 | | X86 | Mac OSX | GCC | |
| 103 | | X86 | OpenBSD | GCC | |
| 104 | | X86 | OS/2 | GCC | |
| 105 | | X86 | Solaris | GCC | |
| 106 | | X86 | Solaris | Oracle Solaris Studio C | |
| 107 | | X86 | Windows/Cygwin | GCC | |
| 108 | | X86 | Windows/MingW | GCC | |
| 109 | | X86-64 | FreeBSD | GCC | |
| 110 | | X86-64 | Linux | GCC | |
| 111 | | X86-64 | Linux/x32 | GCC | |
| 112 | | X86-64 | OpenBSD | GCC | |
| 113 | | X86-64 | Solaris | Oracle Solaris Studio C | |
Anthony Green | f920a01 | 2014-09-20 06:54:06 -0400 | [diff] [blame] | 114 | | X86-64 | Windows/Cygwin | GCC | |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 115 | | X86-64 | Windows/MingW | GCC | |
Jakub Kaszycki | bfab429 | 2016-04-01 21:42:41 +0200 | [diff] [blame^] | 116 | | X86-64 | Mac OSX | GCC | |
Anthony Green | 20cae32 | 2013-01-21 07:07:38 -0500 | [diff] [blame] | 117 | | Xtensa | Linux | GCC | |
Anthony Green | cd41aea | 2013-01-10 17:25:45 -0500 | [diff] [blame] | 118 | |-----------------+------------------+-------------------------| |
Anthony Green | 2e7e03d | 2009-12-31 07:43:22 -0500 | [diff] [blame] | 119 | |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 120 | Please send additional platform test results to |
Anthony Green | 0cfe60e | 2009-12-29 10:06:04 -0500 | [diff] [blame] | 121 | libffi-discuss@sourceware.org and feel free to update the wiki page |
| 122 | above. |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 123 | |
| 124 | Installing libffi |
| 125 | ================= |
| 126 | |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 127 | First you must configure the distribution for your particular |
| 128 | system. Go to the directory you wish to build libffi in and run the |
| 129 | "configure" program found in the root directory of the libffi source |
| 130 | distribution. |
| 131 | |
Josh Triplett | 35634db | 2014-03-15 18:11:16 -0700 | [diff] [blame] | 132 | If you're building libffi directly from version control, configure won't |
| 133 | exist yet; run ./autogen.sh first. |
| 134 | |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 135 | You may want to tell configure where to install the libffi library and |
| 136 | header files. To do that, use the --prefix configure switch. Libffi |
| 137 | will install under /usr/local by default. |
| 138 | |
| 139 | If you want to enable extra run-time debugging checks use the the |
| 140 | --enable-debug configure switch. This is useful when your program dies |
| 141 | mysteriously while using libffi. |
| 142 | |
| 143 | Another useful configure switch is --enable-purify-safety. Using this |
| 144 | will add some extra code which will suppress certain warnings when you |
| 145 | are using Purify with libffi. Only use this switch when using |
| 146 | Purify, as it will slow down the library. |
| 147 | |
Anthony Green | ff3cd68 | 2010-01-15 11:27:24 -0500 | [diff] [blame] | 148 | It's also possible to build libffi on Windows platforms with |
| 149 | Microsoft's Visual C++ compiler. In this case, use the msvcc.sh |
| 150 | wrapper script during configuration like so: |
| 151 | |
Ehsan Akhgari | fb25cd0 | 2014-06-11 12:07:24 -0400 | [diff] [blame] | 152 | path/to/configure CC=path/to/msvcc.sh CXX=path/to/msvcc.sh LD=link CPP="cl -nologo -EP" |
Anthony Green | 9dc9a29 | 2010-04-13 10:33:52 -0400 | [diff] [blame] | 153 | |
Josh Triplett | d74df8c | 2014-03-27 00:44:12 -0700 | [diff] [blame] | 154 | For 64-bit Windows builds, use CC="path/to/msvcc.sh -m64" and |
| 155 | CXX="path/to/msvcc.sh -m64". You may also need to specify --build |
| 156 | appropriately. |
| 157 | |
Ehsan Akhgari | fb25cd0 | 2014-06-11 12:07:24 -0400 | [diff] [blame] | 158 | It is also possible to build libffi on Windows platforms with the LLVM |
| 159 | project's clang-cl compiler, like below: |
| 160 | |
| 161 | path/to/configure CC="path/to/msvcc.sh -clang-cl" CXX="path/to/msvcc.sh -clang-cl" LD=link CPP="clang-cl -EP" |
| 162 | |
Josh Triplett | d74df8c | 2014-03-27 00:44:12 -0700 | [diff] [blame] | 163 | When building with MSVC under a MingW environment, you may need to |
| 164 | remove the line in configure that sets 'fix_srcfile_path' to a 'cygpath' |
| 165 | command. ('cygpath' is not present in MingW, and is not required when |
| 166 | using MingW-style paths.) |
Anthony Green | ff3cd68 | 2010-01-15 11:27:24 -0500 | [diff] [blame] | 167 | |
Nicolas Lelong | d330f19 | 2012-05-05 09:37:02 -0400 | [diff] [blame] | 168 | For iOS builds, the 'libffi.xcodeproj' Xcode project is available. |
Anthony Green | f498318 | 2011-02-09 06:26:46 -0500 | [diff] [blame] | 169 | |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 170 | Configure has many other options. Use "configure --help" to see them all. |
| 171 | |
| 172 | Once configure has finished, type "make". Note that you must be using |
Anthony Green | 10e7722 | 2013-02-10 08:47:26 -0500 | [diff] [blame] | 173 | GNU make. You can ftp GNU make from ftp.gnu.org:/pub/gnu/make . |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 174 | |
| 175 | To ensure that libffi is working as advertised, type "make check". |
| 176 | This will require that you have DejaGNU installed. |
| 177 | |
| 178 | To install the library and header files, type "make install". |
| 179 | |
| 180 | |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 181 | History |
| 182 | ======= |
| 183 | |
Anthony Green | 9837073 | 2014-03-25 16:24:14 -0400 | [diff] [blame] | 184 | See the git log for details at http://github.com/atgreen/libffi. |
Anthony Green | f7c0bc6 | 2009-12-25 01:22:11 -0500 | [diff] [blame] | 185 | |
Anthony Green | 8d5debc | 2014-11-12 08:04:51 -0500 | [diff] [blame] | 186 | 4.0 TBD |
| 187 | New API in support of GO closures. |
| 188 | |
Anthony Green | 20562ac | 2014-11-12 07:00:59 -0500 | [diff] [blame] | 189 | 3.2.1 Nov-12-14 |
| 190 | Build fix for non-iOS AArch64 targets. |
| 191 | |
Anthony Green | ee826b9 | 2014-11-11 07:29:26 -0500 | [diff] [blame] | 192 | 3.2 Nov-11-14 |
| 193 | Add C99 Complex Type support (currently only supported on |
| 194 | s390). |
Anthony Green | b2ca59d | 2014-09-20 07:08:05 -0400 | [diff] [blame] | 195 | Add support for PASCAL and REGISTER calling conventions on x86 |
| 196 | Windows/Linux. |
Anthony Green | c81a705 | 2014-11-04 13:29:58 -0500 | [diff] [blame] | 197 | Add OpenRISC and Cygwin-64 support. |
Anthony Green | 69289c1 | 2014-05-31 08:54:08 -0400 | [diff] [blame] | 198 | Bug fixes. |
| 199 | |
Anthony Green | 0403f33 | 2014-05-19 09:41:32 -0400 | [diff] [blame] | 200 | 3.1 May-19-14 |
Anthony Green | 6ae046c | 2013-11-30 21:06:51 -0500 | [diff] [blame] | 201 | Add AArch64 (ARM64) iOS support. |
Anthony Green | 484a758 | 2013-11-30 21:06:51 -0500 | [diff] [blame] | 202 | Add Nios II support. |
Anthony Green | 3dc3f32 | 2013-12-05 16:23:25 -0500 | [diff] [blame] | 203 | Add m88k and DEC VAX support. |
Anthony Green | b61b472 | 2014-03-16 09:45:55 -0400 | [diff] [blame] | 204 | Add support for stdcall, thiscall, and fastcall on non-Windows |
| 205 | 32-bit x86 targets such as Linux. |
Anthony Green | 9837073 | 2014-03-25 16:24:14 -0400 | [diff] [blame] | 206 | Various Android, MIPS N32, x86, FreeBSD and UltraSPARC IIi |
| 207 | fixes. |
Josh Triplett | 03ca880 | 2014-03-27 08:44:34 -0700 | [diff] [blame] | 208 | Make the testsuite more robust: eliminate several spurious |
| 209 | failures, and respect the $CC and $CXX environment variables. |
Anthony Green | 9837073 | 2014-03-25 16:24:14 -0400 | [diff] [blame] | 210 | Archive off the manually maintained ChangeLog in favor of git |
| 211 | log. |
Anthony Green | ff06269 | 2013-10-08 06:32:18 -0400 | [diff] [blame] | 212 | |
Anthony Green | f22ab3c | 2013-03-17 18:34:54 -0400 | [diff] [blame] | 213 | 3.0.13 Mar-17-13 |
Anthony Green | 2fb527a | 2013-03-16 07:46:38 -0400 | [diff] [blame] | 214 | Add Meta support. |
Anthony Green | 215763d | 2013-03-16 07:57:35 -0400 | [diff] [blame] | 215 | Add missing Moxie bits. |
Anthony Green | 2fb527a | 2013-03-16 07:46:38 -0400 | [diff] [blame] | 216 | Fix stack alignment bug on 32-bit x86. |
Anthony Green | 8a286f5 | 2013-03-16 08:01:19 -0400 | [diff] [blame] | 217 | Build fix for m68000 targets. |
Anthony Green | 4acf005 | 2013-03-16 08:18:45 -0400 | [diff] [blame] | 218 | Build fix for soft-float Power targets. |
Anthony Green | 12b1886 | 2013-03-17 18:32:12 -0400 | [diff] [blame] | 219 | Fix the install dir location for some platforms when building |
| 220 | with GCC (OS X, Solaris). |
Anthony Green | f22ab3c | 2013-03-17 18:34:54 -0400 | [diff] [blame] | 221 | Fix Cygwin regression. |
Anthony Green | 2fb527a | 2013-03-16 07:46:38 -0400 | [diff] [blame] | 222 | |
Anthony Green | f308faf | 2013-02-11 14:25:13 -0500 | [diff] [blame] | 223 | 3.0.12 Feb-11-13 |
| 224 | Add Moxie support. |
Anthony Green | bada2e3 | 2013-01-21 08:02:07 -0500 | [diff] [blame] | 225 | Add AArch64 support. |
Anthony Green | 048d2f4 | 2012-10-11 10:55:25 -0400 | [diff] [blame] | 226 | Add Blackfin support. |
Anthony Green | 9c00a3f | 2012-10-12 16:46:06 -0400 | [diff] [blame] | 227 | Add TILE-Gx/TILEPro support. |
Anthony Green | f308faf | 2013-02-11 14:25:13 -0500 | [diff] [blame] | 228 | Add MicroBlaze support. |
Anthony Green | 20cae32 | 2013-01-21 07:07:38 -0500 | [diff] [blame] | 229 | Add Xtensa support. |
Anthony Green | e944b8c | 2012-10-30 14:06:09 -0400 | [diff] [blame] | 230 | Add support for PaX enabled kernels with MPROTECT. |
Anthony Green | 9742f91 | 2013-01-21 07:03:41 -0500 | [diff] [blame] | 231 | Add support for native vendor compilers on |
| 232 | Solaris and AIX. |
Anthony Green | 176aa9d | 2013-02-07 15:29:22 -0500 | [diff] [blame] | 233 | Work around LLVM/GCC interoperability issue on x86_64. |
Anthony Green | 09b23cf | 2012-04-27 08:29:48 -0400 | [diff] [blame] | 234 | |
Anthony Green | ff3d76f | 2012-04-11 23:16:48 -0400 | [diff] [blame] | 235 | 3.0.11 Apr-11-12 |
Anthony Green | 048d2f4 | 2012-10-11 10:55:25 -0400 | [diff] [blame] | 236 | Lots of build fixes. |
Anthony Green | 048d2f4 | 2012-10-11 10:55:25 -0400 | [diff] [blame] | 237 | Add support for variadic functions (ffi_prep_cif_var). |
Anthony Green | 964c5b9 | 2012-03-03 14:46:20 -0500 | [diff] [blame] | 238 | Add Linux/x32 support. |
Anthony Green | 59bb61a | 2012-04-06 08:26:14 -0400 | [diff] [blame] | 239 | Add thiscall, fastcall and MSVC cdecl support on Windows. |
Anthony Green | 048d2f4 | 2012-10-11 10:55:25 -0400 | [diff] [blame] | 240 | Add Amiga and newer MacOS support. |
Anthony Green | 59bb61a | 2012-04-06 08:26:14 -0400 | [diff] [blame] | 241 | Add m68k FreeMiNT support. |
Mike Lewis | ebb8e89 | 2012-04-06 20:02:08 -0400 | [diff] [blame] | 242 | Integration with iOS' xcode build tools. |
| 243 | Fix Octeon and MC68881 support. |
Anthony Green | afaf338 | 2012-01-23 14:17:13 -0500 | [diff] [blame] | 244 | Fix code pessimizations. |
Anthony Green | ee6696f | 2011-08-23 12:30:29 -0400 | [diff] [blame] | 245 | |
Anthony Green | c6265c3 | 2011-08-23 10:31:33 -0400 | [diff] [blame] | 246 | 3.0.10 Aug-23-11 |
Anthony Green | cbb062c | 2011-02-17 20:39:21 -0500 | [diff] [blame] | 247 | Add support for Apple's iOS. |
Anthony Green | 1fbf9dc | 2011-02-13 08:06:39 -0500 | [diff] [blame] | 248 | Add support for ARM VFP ABI. |
Anthony Green | 630b9c0 | 2011-02-09 06:24:23 -0500 | [diff] [blame] | 249 | Add RTEMS support for MIPS and M68K. |
Anthony Green | c6265c3 | 2011-08-23 10:31:33 -0400 | [diff] [blame] | 250 | Fix instruction cache clearing problems on |
| 251 | ARM and SPARC. |
Anthony Green | 2db7261 | 2010-11-21 10:50:56 -0500 | [diff] [blame] | 252 | Fix the N64 build on mips-sgi-irix6.5. |
Anthony Green | cbb062c | 2011-02-17 20:39:21 -0500 | [diff] [blame] | 253 | Enable builds with Microsoft's compiler. |
| 254 | Enable x86 builds with Oracle's Solaris compiler. |
Anthony Green | e2214f8 | 2011-02-08 19:22:56 -0500 | [diff] [blame] | 255 | Fix support for calling code compiled with Oracle's Sparc |
Anthony Green | cbb062c | 2011-02-17 20:39:21 -0500 | [diff] [blame] | 256 | Solaris compiler. |
| 257 | Testsuite fixes for Tru64 Unix. |
Anthony Green | c6265c3 | 2011-08-23 10:31:33 -0400 | [diff] [blame] | 258 | Additional platform support. |
Anthony Green | 2db7261 | 2010-11-21 10:50:56 -0500 | [diff] [blame] | 259 | |
Anthony Green | 2e7e03d | 2009-12-31 07:43:22 -0500 | [diff] [blame] | 260 | 3.0.9 Dec-31-09 |
Anthony Green | f7c0bc6 | 2009-12-25 01:22:11 -0500 | [diff] [blame] | 261 | Add AVR32 and win64 ports. Add ARM softfp support. |
| 262 | Many fixes for AIX, Solaris, HP-UX, *BSD. |
Anthony Green | 2e7e03d | 2009-12-31 07:43:22 -0500 | [diff] [blame] | 263 | Several PowerPC and x86-64 bug fixes. |
Anthony Green | 0cfe60e | 2009-12-29 10:06:04 -0500 | [diff] [blame] | 264 | Build DLL for windows. |
Anthony Green | f7c0bc6 | 2009-12-25 01:22:11 -0500 | [diff] [blame] | 265 | |
| 266 | 3.0.8 Dec-19-08 |
| 267 | Add *BSD, BeOS, and PA-Linux support. |
| 268 | |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 269 | 3.0.7 Nov-11-08 |
| 270 | Fix for ppc FreeBSD. |
| 271 | (thanks to Andreas Tobler) |
| 272 | |
| 273 | 3.0.6 Jul-17-08 |
| 274 | Fix for closures on sh. |
| 275 | Mark the sh/sh64 stack as non-executable. |
| 276 | (both thanks to Kaz Kojima) |
| 277 | |
| 278 | 3.0.5 Apr-3-08 |
| 279 | Fix libffi.pc file. |
| 280 | Fix #define ARM for IcedTea users. |
| 281 | Fix x86 closure bug. |
| 282 | |
| 283 | 3.0.4 Feb-24-08 |
| 284 | Fix x86 OpenBSD configury. |
| 285 | |
| 286 | 3.0.3 Feb-22-08 |
| 287 | Enable x86 OpenBSD thanks to Thomas Heller, and |
| 288 | x86-64 FreeBSD thanks to Björn König and Andreas Tobler. |
| 289 | Clean up test instruction in README. |
| 290 | |
| 291 | 3.0.2 Feb-21-08 |
| 292 | Improved x86 FreeBSD support. |
| 293 | Thanks to Björn König. |
| 294 | |
| 295 | 3.0.1 Feb-15-08 |
| 296 | Fix instruction cache flushing bug on MIPS. |
| 297 | Thanks to David Daney. |
| 298 | |
| 299 | 3.0.0 Feb-15-08 |
| 300 | Many changes, mostly thanks to the GCC project. |
| 301 | Cygnus Solutions is now Red Hat. |
| 302 | |
| 303 | [10 years go by...] |
| 304 | |
| 305 | 1.20 Oct-5-98 |
| 306 | Raffaele Sena produces ARM port. |
| 307 | |
| 308 | 1.19 Oct-5-98 |
| 309 | Fixed x86 long double and long long return support. |
| 310 | m68k bug fixes from Andreas Schwab. |
| 311 | Patch for DU assembler compatibility for the Alpha from Richard |
| 312 | Henderson. |
| 313 | |
| 314 | 1.18 Apr-17-98 |
| 315 | Bug fixes and MIPS configuration changes. |
| 316 | |
| 317 | 1.17 Feb-24-98 |
| 318 | Bug fixes and m68k port from Andreas Schwab. PowerPC port from |
| 319 | Geoffrey Keating. Various bug x86, Sparc and MIPS bug fixes. |
| 320 | |
| 321 | 1.16 Feb-11-98 |
| 322 | Richard Henderson produces Alpha port. |
| 323 | |
| 324 | 1.15 Dec-4-97 |
| 325 | Fixed an n32 ABI bug. New libtool, auto* support. |
| 326 | |
| 327 | 1.14 May-13-97 |
| 328 | libtool is now used to generate shared and static libraries. |
| 329 | Fixed a minor portability problem reported by Russ McManus |
| 330 | <mcmanr@eq.gs.com>. |
| 331 | |
| 332 | 1.13 Dec-2-96 |
| 333 | Added --enable-purify-safety to keep Purify from complaining |
| 334 | about certain low level code. |
| 335 | Sparc fix for calling functions with < 6 args. |
| 336 | Linux x86 a.out fix. |
| 337 | |
| 338 | 1.12 Nov-22-96 |
| 339 | Added missing ffi_type_void, needed for supporting void return |
| 340 | types. Fixed test case for non MIPS machines. Cygnus Support |
| 341 | is now Cygnus Solutions. |
| 342 | |
| 343 | 1.11 Oct-30-96 |
| 344 | Added notes about GNU make. |
| 345 | |
| 346 | 1.10 Oct-29-96 |
| 347 | Added configuration fix for non GNU compilers. |
| 348 | |
| 349 | 1.09 Oct-29-96 |
| 350 | Added --enable-debug configure switch. Clean-ups based on LCLint |
| 351 | feedback. ffi_mips.h is always installed. Many configuration |
| 352 | fixes. Fixed ffitest.c for sparc builds. |
| 353 | |
| 354 | 1.08 Oct-15-96 |
| 355 | Fixed n32 problem. Many clean-ups. |
| 356 | |
| 357 | 1.07 Oct-14-96 |
| 358 | Gordon Irlam rewrites v8.S again. Bug fixes. |
| 359 | |
| 360 | 1.06 Oct-14-96 |
| 361 | Gordon Irlam improved the sparc port. |
| 362 | |
| 363 | 1.05 Oct-14-96 |
| 364 | Interface changes based on feedback. |
| 365 | |
| 366 | 1.04 Oct-11-96 |
| 367 | Sparc port complete (modulo struct passing bug). |
| 368 | |
| 369 | 1.03 Oct-10-96 |
| 370 | Passing struct args, and returning struct values works for |
| 371 | all architectures/calling conventions. Expanded tests. |
| 372 | |
| 373 | 1.02 Oct-9-96 |
| 374 | Added SGI n32 support. Fixed bugs in both o32 and Linux support. |
| 375 | Added "make test". |
| 376 | |
| 377 | 1.01 Oct-8-96 |
| 378 | Fixed float passing bug in mips version. Restructured some |
| 379 | of the code. Builds cleanly with SGI tools. |
| 380 | |
| 381 | 1.00 Oct-7-96 |
| 382 | First release. No public announcement. |
| 383 | |
| 384 | |
| 385 | Authors & Credits |
| 386 | ================= |
| 387 | |
Anthony Green | 666f3e7 | 2013-10-26 09:12:42 -0400 | [diff] [blame] | 388 | libffi was originally written by Anthony Green <green@moxielogic.com>. |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 389 | |
| 390 | The developers of the GNU Compiler Collection project have made |
| 391 | innumerable valuable contributions. See the ChangeLog file for |
| 392 | details. |
| 393 | |
| 394 | Some of the ideas behind libffi were inspired by Gianni Mariani's free |
| 395 | gencall library for Silicon Graphics machines. |
| 396 | |
| 397 | The closure mechanism was designed and implemented by Kresten Krab |
| 398 | Thorup. |
| 399 | |
| 400 | Major processor architecture ports were contributed by the following |
| 401 | developers: |
| 402 | |
Anthony Green | 58e8b66 | 2012-10-30 07:07:19 -0400 | [diff] [blame] | 403 | aarch64 Marcus Shawcroft, James Greenhalgh |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 404 | alpha Richard Henderson |
| 405 | arm Raffaele Sena |
Anthony Green | 70084e7 | 2012-10-12 23:55:06 -0400 | [diff] [blame] | 406 | blackfin Alexandre Keunecke I. de Mendonca |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 407 | cris Simon Posnjak, Hans-Peter Nilsson |
| 408 | frv Anthony Green |
| 409 | ia64 Hans Boehm |
| 410 | m32r Kazuhiro Inaoka |
| 411 | m68k Andreas Schwab |
Anthony Green | 666f3e7 | 2013-10-26 09:12:42 -0400 | [diff] [blame] | 412 | m88k Miod Vallat |
Anthony Green | aeb8719 | 2013-01-21 07:37:30 -0500 | [diff] [blame] | 413 | microblaze Nathan Rossi |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 414 | mips Anthony Green, Casey Marshall |
| 415 | mips64 David Daney |
Anthony Green | f308faf | 2013-02-11 14:25:13 -0500 | [diff] [blame] | 416 | moxie Anthony Green |
Anthony Green | 666f3e7 | 2013-10-26 09:12:42 -0400 | [diff] [blame] | 417 | nios ii Sandra Loosemore |
Anthony Green | ee826b9 | 2014-11-11 07:29:26 -0500 | [diff] [blame] | 418 | openrisc Sebastian Macke |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 419 | pa Randolph Chung, Dave Anglin, Andreas Tobler |
| 420 | powerpc Geoffrey Keating, Andreas Tobler, |
| 421 | David Edelsohn, John Hornkvist |
| 422 | powerpc64 Jakub Jelinek |
| 423 | s390 Gerhard Tonn, Ulrich Weigand |
| 424 | sh Kaz Kojima |
| 425 | sh64 Kaz Kojima |
| 426 | sparc Anthony Green, Gordon Irlam |
Anthony Green | 70084e7 | 2012-10-12 23:55:06 -0400 | [diff] [blame] | 427 | tile-gx/tilepro Walter Lee |
Anthony Green | 666f3e7 | 2013-10-26 09:12:42 -0400 | [diff] [blame] | 428 | vax Miod Vallat |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 429 | x86 Anthony Green, Jon Beniston |
| 430 | x86-64 Bo Thorsen |
Anthony Green | 20cae32 | 2013-01-21 07:07:38 -0500 | [diff] [blame] | 431 | xtensa Chris Zankel |
Anthony Green | c6dddbd | 2009-10-04 08:11:33 -0400 | [diff] [blame] | 432 | |
| 433 | Jesper Skov and Andrew Haley both did more than their fair share of |
| 434 | stepping through the code and tracking down bugs. |
| 435 | |
| 436 | Thanks also to Tom Tromey for bug fixes, documentation and |
| 437 | configuration help. |
| 438 | |
| 439 | Thanks to Jim Blandy, who provided some useful feedback on the libffi |
| 440 | interface. |
| 441 | |
| 442 | Andreas Tobler has done a tremendous amount of work on the testsuite. |
| 443 | |
| 444 | Alex Oliva solved the executable page problem for SElinux. |
| 445 | |
| 446 | The list above is almost certainly incomplete and inaccurate. I'm |
| 447 | happy to make corrections or additions upon request. |
| 448 | |
Anthony Green | 630b9c0 | 2011-02-09 06:24:23 -0500 | [diff] [blame] | 449 | If you have a problem, or have found a bug, please send a note to the |
| 450 | author at green@moxielogic.com, or the project mailing list at |
| 451 | libffi-discuss@sourceware.org. |