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