ffi 1.15.5 → 1.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +169 -0
- data/Gemfile +15 -3
- data/README.md +5 -3
- data/Rakefile +30 -12
- data/Steepfile +8 -0
- data/ext/ffi_c/AbstractMemory.c +99 -74
- data/ext/ffi_c/AbstractMemory.h +3 -2
- data/ext/ffi_c/ArrayType.c +51 -15
- data/ext/ffi_c/ArrayType.h +1 -0
- data/ext/ffi_c/Buffer.c +90 -33
- data/ext/ffi_c/Call.c +29 -12
- data/ext/ffi_c/Call.h +3 -2
- data/ext/ffi_c/DynamicLibrary.c +90 -27
- data/ext/ffi_c/Function.c +276 -110
- data/ext/ffi_c/Function.h +1 -0
- data/ext/ffi_c/FunctionInfo.c +81 -25
- data/ext/ffi_c/LastError.c +29 -11
- data/ext/ffi_c/MappedType.c +66 -23
- data/ext/ffi_c/MappedType.h +0 -2
- data/ext/ffi_c/MemoryPointer.c +36 -9
- data/ext/ffi_c/MethodHandle.c +7 -3
- data/ext/ffi_c/Pointer.c +82 -40
- data/ext/ffi_c/Pointer.h +1 -0
- data/ext/ffi_c/Struct.c +166 -84
- data/ext/ffi_c/Struct.h +7 -4
- data/ext/ffi_c/StructByValue.c +48 -16
- data/ext/ffi_c/StructLayout.c +259 -73
- data/ext/ffi_c/Type.c +120 -51
- data/ext/ffi_c/Type.h +3 -1
- data/ext/ffi_c/Types.c +8 -2
- data/ext/ffi_c/Types.h +0 -1
- data/ext/ffi_c/Variadic.c +71 -26
- data/ext/ffi_c/compat.h +22 -22
- data/ext/ffi_c/extconf.rb +19 -2
- data/ext/ffi_c/ffi.c +4 -0
- data/ext/ffi_c/libffi/LICENSE +1 -1
- data/ext/ffi_c/libffi/Makefile.am +28 -16
- data/ext/ffi_c/libffi/Makefile.in +138 -84
- data/ext/ffi_c/libffi/README.md +189 -108
- data/ext/ffi_c/libffi/acinclude.m4 +16 -112
- data/ext/ffi_c/libffi/{.travis/compile → compile} +4 -7
- data/ext/ffi_c/libffi/config.guess +695 -570
- data/ext/ffi_c/libffi/config.sub +217 -95
- data/ext/ffi_c/libffi/configure +4642 -3901
- data/ext/ffi_c/libffi/configure.ac +83 -33
- data/ext/ffi_c/libffi/configure.host +31 -12
- data/ext/ffi_c/libffi/doc/Makefile.in +13 -6
- data/ext/ffi_c/libffi/doc/libffi.texi +108 -36
- data/ext/ffi_c/libffi/doc/version.texi +4 -4
- data/ext/ffi_c/libffi/fficonfig.h.in +15 -50
- data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +144 -60
- data/ext/ffi_c/libffi/include/Makefile.am +1 -1
- data/ext/ffi_c/libffi/include/Makefile.in +14 -9
- data/ext/ffi_c/libffi/include/ffi.h.in +73 -60
- data/ext/ffi_c/libffi/include/ffi_cfi.h +23 -0
- data/ext/ffi_c/libffi/include/ffi_common.h +50 -2
- data/ext/ffi_c/libffi/include/tramp.h +45 -0
- data/ext/ffi_c/libffi/install-sh +92 -69
- data/ext/ffi_c/libffi/libffi.map.in +18 -1
- data/ext/ffi_c/libffi/libtool-version +2 -2
- data/ext/ffi_c/libffi/ltmain.sh +518 -333
- data/ext/ffi_c/libffi/m4/asmcfi.m4 +28 -11
- data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +18 -14
- data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +108 -72
- data/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +13 -3
- data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +76 -45
- data/ext/ffi_c/libffi/m4/ax_prepend_flag.m4 +51 -0
- data/ext/ffi_c/libffi/man/Makefile.in +13 -6
- data/ext/ffi_c/libffi/missing +1 -1
- data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h +2 -2
- data/ext/ffi_c/libffi/msvcc.sh +1 -1
- data/ext/ffi_c/libffi/src/aarch64/ffi.c +177 -57
- data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +2 -2
- data/ext/ffi_c/libffi/src/aarch64/internal.h +78 -0
- data/ext/ffi_c/libffi/src/aarch64/sysv.S +347 -93
- data/ext/ffi_c/libffi/src/arc/arcompact.S +169 -94
- data/ext/ffi_c/libffi/src/arc/ffi.c +328 -147
- data/ext/ffi_c/libffi/src/arc/ffitarget.h +14 -0
- data/ext/ffi_c/libffi/src/arm/ffi.c +62 -17
- data/ext/ffi_c/libffi/src/arm/ffitarget.h +3 -3
- data/ext/ffi_c/libffi/src/arm/internal.h +10 -0
- data/ext/ffi_c/libffi/src/arm/sysv.S +114 -43
- data/ext/ffi_c/libffi/src/closures.c +137 -51
- data/ext/ffi_c/libffi/src/debug.c +2 -2
- data/ext/ffi_c/libffi/src/dlmalloc.c +7 -1
- data/ext/ffi_c/libffi/src/ia64/ffi.c +12 -0
- data/ext/ffi_c/libffi/src/ia64/unix.S +20 -2
- data/ext/ffi_c/libffi/src/loongarch64/ffi.c +624 -0
- data/ext/ffi_c/libffi/src/loongarch64/ffitarget.h +82 -0
- data/ext/ffi_c/libffi/src/loongarch64/sysv.S +327 -0
- data/ext/ffi_c/libffi/src/m32r/ffi.c +31 -14
- data/ext/ffi_c/libffi/src/mips/ffi.c +250 -67
- data/ext/ffi_c/libffi/src/mips/ffitarget.h +9 -4
- data/ext/ffi_c/libffi/src/mips/n32.S +197 -33
- data/ext/ffi_c/libffi/src/mips/o32.S +65 -4
- data/ext/ffi_c/libffi/src/moxie/ffi.c +47 -22
- data/ext/ffi_c/libffi/src/or1k/ffi.c +27 -14
- data/ext/ffi_c/libffi/src/pa/ffi.c +32 -33
- data/ext/ffi_c/libffi/src/pa/ffi64.c +614 -0
- data/ext/ffi_c/libffi/src/pa/ffitarget.h +22 -8
- data/ext/ffi_c/libffi/src/pa/hpux32.S +83 -36
- data/ext/ffi_c/libffi/src/pa/hpux64.S +681 -0
- data/ext/ffi_c/libffi/src/pa/linux.S +86 -35
- data/ext/ffi_c/libffi/src/powerpc/ffi.c +19 -0
- data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +36 -24
- data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +27 -20
- data/ext/ffi_c/libffi/src/powerpc/ffi_sysv.c +26 -16
- data/ext/ffi_c/libffi/src/powerpc/internal.h +10 -0
- data/ext/ffi_c/libffi/src/powerpc/linux64.S +2 -0
- data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +49 -0
- data/ext/ffi_c/libffi/src/powerpc/ppc_closure.S +24 -0
- data/ext/ffi_c/libffi/src/powerpc/t-aix +5 -0
- data/ext/ffi_c/libffi/src/prep_cif.c +22 -5
- data/ext/ffi_c/libffi/src/riscv/ffi.c +74 -18
- data/ext/ffi_c/libffi/src/riscv/internal.h +7 -0
- data/ext/ffi_c/libffi/src/riscv/sysv.S +24 -0
- data/ext/ffi_c/libffi/src/s390/ffi.c +28 -1
- data/ext/ffi_c/libffi/src/s390/internal.h +11 -0
- data/ext/ffi_c/libffi/src/s390/sysv.S +38 -0
- data/ext/ffi_c/libffi/src/sparc/ffi.c +16 -0
- data/ext/ffi_c/libffi/src/sparc/ffi64.c +23 -1
- data/ext/ffi_c/libffi/src/tramp.c +721 -0
- data/ext/ffi_c/libffi/src/types.c +26 -6
- data/ext/ffi_c/libffi/src/wasm/ffi.c +798 -0
- data/ext/ffi_c/libffi/src/wasm/ffitarget.h +79 -0
- data/ext/ffi_c/libffi/src/x86/ffi.c +102 -37
- data/ext/ffi_c/libffi/src/x86/ffi64.c +71 -13
- data/ext/ffi_c/libffi/src/x86/ffitarget.h +6 -5
- data/ext/ffi_c/libffi/src/x86/ffiw64.c +44 -1
- data/ext/ffi_c/libffi/src/x86/internal.h +14 -0
- data/ext/ffi_c/libffi/src/x86/internal64.h +14 -0
- data/ext/ffi_c/libffi/src/x86/sysv.S +173 -41
- data/ext/ffi_c/libffi/src/x86/sysv_intel.S +92 -91
- data/ext/ffi_c/libffi/src/x86/unix64.S +96 -6
- data/ext/ffi_c/libffi/src/x86/win64.S +20 -7
- data/ext/ffi_c/libffi/src/xtensa/ffi.c +16 -8
- data/ext/ffi_c/libffi/src/xtensa/ffitarget.h +4 -0
- data/ext/ffi_c/libffi/src/xtensa/sysv.S +26 -16
- data/ext/ffi_c/libffi/testsuite/Makefile.in +95 -121
- data/ext/ffi_c/libffi.bsd.mk +2 -2
- data/ext/ffi_c/libffi.darwin.mk +2 -2
- data/ext/ffi_c/libffi.gnu.mk +2 -2
- data/ext/ffi_c/libffi.mk +5 -0
- data/ext/ffi_c/rbffi.h +1 -1
- data/ffi.gemspec +9 -8
- data/lib/ffi/autopointer.rb +14 -31
- data/lib/ffi/compat.rb +54 -0
- data/lib/ffi/data_converter.rb +2 -2
- data/lib/ffi/dynamic_library.rb +118 -0
- data/lib/ffi/enum.rb +18 -12
- data/lib/ffi/ffi.rb +62 -0
- data/lib/ffi/function.rb +94 -0
- data/lib/ffi/io.rb +2 -2
- data/lib/ffi/library.rb +88 -88
- data/lib/ffi/library_path.rb +109 -0
- data/lib/ffi/managedstruct.rb +1 -1
- data/lib/ffi/platform/aarch64-linux/types.conf +74 -3
- data/lib/ffi/platform/aarch64-windows/types.conf +52 -0
- data/lib/ffi/platform/hppa1.1-linux/types.conf +178 -0
- data/lib/ffi/platform/hppa2.0-linux/types.conf +178 -0
- data/lib/ffi/platform/loongarch64-linux/types.conf +141 -0
- data/lib/ffi/platform/sw_64-linux/types.conf +141 -0
- data/lib/ffi/platform.rb +15 -13
- data/lib/ffi/pointer.rb +6 -6
- data/lib/ffi/struct.rb +6 -5
- data/lib/ffi/struct_by_reference.rb +1 -1
- data/lib/ffi/struct_layout.rb +3 -3
- data/lib/ffi/struct_layout_builder.rb +9 -9
- data/lib/ffi/types.rb +65 -37
- data/lib/ffi/variadic.rb +19 -8
- data/lib/ffi/version.rb +1 -1
- data/samples/hello_ractor.rb +19 -0
- data/samples/qsort_ractor.rb +36 -0
- data/sig/ffi/abstract_memory.rbs +165 -0
- data/sig/ffi/auto_pointer.rbs +26 -0
- data/sig/ffi/buffer.rbs +18 -0
- data/sig/ffi/data_converter.rbs +10 -0
- data/sig/ffi/dynamic_library.rbs +9 -0
- data/sig/ffi/enum.rbs +38 -0
- data/sig/ffi/errno.rbs +8 -0
- data/sig/ffi/function.rbs +39 -0
- data/sig/ffi/library.rbs +42 -0
- data/sig/ffi/native_type.rbs +86 -0
- data/sig/ffi/platform.rbs +49 -0
- data/sig/ffi/pointer.rbs +42 -0
- data/sig/ffi/struct.rbs +76 -0
- data/sig/ffi/struct_by_reference.rbs +11 -0
- data/sig/ffi/struct_by_value.rbs +7 -0
- data/sig/ffi/struct_layout.rbs +9 -0
- data/sig/ffi/struct_layout_builder.rbs +5 -0
- data/sig/ffi/type.rbs +39 -0
- data/sig/ffi.rbs +29 -0
- data.tar.gz.sig +0 -0
- metadata +79 -299
- metadata.gz.sig +0 -0
- data/ext/ffi_c/libffi/.appveyor.yml +0 -66
- data/ext/ffi_c/libffi/.gitattributes +0 -4
- data/ext/ffi_c/libffi/.github/issue_template.md +0 -10
- data/ext/ffi_c/libffi/.gitignore +0 -38
- data/ext/ffi_c/libffi/.travis/ar-lib +0 -270
- data/ext/ffi_c/libffi/.travis/bfin-sim.exp +0 -58
- data/ext/ffi_c/libffi/.travis/build-cross-in-container.sh +0 -14
- data/ext/ffi_c/libffi/.travis/build-in-container.sh +0 -12
- data/ext/ffi_c/libffi/.travis/build.sh +0 -142
- data/ext/ffi_c/libffi/.travis/install.sh +0 -71
- data/ext/ffi_c/libffi/.travis/m32r-sim.exp +0 -58
- data/ext/ffi_c/libffi/.travis/moxie-sim.exp +0 -60
- data/ext/ffi_c/libffi/.travis/or1k-sim.exp +0 -58
- data/ext/ffi_c/libffi/.travis/powerpc-eabisim.exp +0 -58
- data/ext/ffi_c/libffi/.travis/site.exp +0 -27
- data/ext/ffi_c/libffi/.travis/wine-sim.exp +0 -55
- data/ext/ffi_c/libffi/.travis.yml +0 -83
- data/ext/ffi_c/libffi/src/nios2/ffi.c +0 -304
- data/ext/ffi_c/libffi/src/nios2/ffitarget.h +0 -52
- data/ext/ffi_c/libffi/src/nios2/sysv.S +0 -136
- data/ext/ffi_c/libffi/testsuite/Makefile.am +0 -122
- data/ext/ffi_c/libffi/testsuite/config/default.exp +0 -1
- data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +0 -660
- data/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +0 -283
- data/ext/ffi_c/libffi/testsuite/lib/wrapper.exp +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/Makefile +0 -28
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/README +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/alignof.h +0 -50
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/bhaible.exp +0 -63
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-call.c +0 -1745
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-callback.c +0 -2885
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/testcases.c +0 -743
- data/ext/ffi_c/libffi/testsuite/libffi.call/align_mixed.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/align_stdcall.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +0 -54
- data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c +0 -26
- data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +0 -138
- data/ext/ffi_c/libffi/testsuite/libffi.call/float.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/float1.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/float3.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/float4.c +0 -62
- data/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +0 -107
- data/ext/ffi_c/libffi/testsuite/libffi.call/many.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/many2.c +0 -57
- data/ext/ffi_c/libffi/testsuite/libffi.call/many_double.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.call/many_mixed.c +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.call/negint.c +0 -52
- data/ext/ffi_c/libffi/testsuite/libffi.call/offsets.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/pr1172638.c +0 -127
- data/ext/ffi_c/libffi/testsuite/libffi.call/promotion.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/pyobjc-tc.c +0 -114
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl1.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl2.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl.c +0 -35
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl1.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl2.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl3.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ldl.c +0 -34
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c +0 -41
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_sc.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct1.c +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct10.c +0 -57
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct2.c +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct3.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct4.c +0 -64
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct5.c +0 -66
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct6.c +0 -64
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct7.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct8.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct9.c +0 -68
- data/ext/ffi_c/libffi/testsuite/libffi.call/uninitialized.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +0 -196
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +0 -121
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +0 -123
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +0 -125
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure.exp +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn0.c +0 -89
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn1.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn2.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn3.c +0 -82
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn4.c +0 -89
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn5.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn6.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_loc_fn0.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_simple.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_12byte.c +0 -94
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_16byte.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_18byte.c +0 -96
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_19byte.c +0 -102
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_1_1byte.c +0 -89
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte1.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_24byte.c +0 -113
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_2byte.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3_1byte.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte2.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3float.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4_1byte.c +0 -98
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4byte.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5_1_byte.c +0 -109
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5byte.c +0 -98
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_64byte.c +0 -124
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6_1_byte.c +0 -113
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6byte.c +0 -99
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7_1_byte.c +0 -117
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7byte.c +0 -97
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_8byte.c +0 -88
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte2.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_double.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_float.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split.c +0 -132
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split2.c +0 -115
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_pointer.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint16.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint32.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint64.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint16.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint32.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint64.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_dbls_struct.c +0 -66
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_double.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_double_va.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_float.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble.c +0 -105
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble_va.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_args.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_float_double.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_schar.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshort.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshortchar.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_uchar.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushort.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushortchar.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer_stack.c +0 -142
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_schar.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sint.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sshort.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_struct_va1.c +0 -114
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar_va.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint_va.c +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulong_va.c +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulonglong.c +0 -47
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort_va.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.closures/err_bad_abi.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h +0 -138
- data/ext/ffi_c/libffi/testsuite/libffi.closures/huge_struct.c +0 -343
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct.c +0 -152
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct1.c +0 -161
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct10.c +0 -134
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct11.c +0 -121
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct2.c +0 -110
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct3.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct4.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct5.c +0 -112
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct6.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct7.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct8.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct9.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.closures/problem1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_large.c +0 -145
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_large2.c +0 -148
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium.c +0 -124
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium2.c +0 -125
- data/ext/ffi_c/libffi/testsuite/libffi.closures/testclosure.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest.cc +0 -117
- data/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest_ffi_call.cc +0 -54
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex.inc +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex.inc +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct.inc +0 -71
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va.inc +0 -80
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_float.c +0 -16
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.exp +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.inc +0 -51
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_double.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_float.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_longdouble.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_int.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/ffitest.h +0 -1
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex.inc +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex.inc +0 -37
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1.inc +0 -41
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2.inc +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c +0 -34
- data/ext/ffi_c/libffi/testsuite/libffi.go/closure1.c +0 -28
- data/ext/ffi_c/libffi/testsuite/libffi.go/ffitest.h +0 -1
- data/ext/ffi_c/libffi/testsuite/libffi.go/go.exp +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.go/static-chain.h +0 -19
- data/lib/ffi/tools/types_generator.rb +0 -137
- data/rakelib/ffi_gem_helper.rb +0 -65
- /data/lib/ffi/platform/{sparc64-linux → sparcv9-linux}/types.conf +0 -0
data/ext/ffi_c/libffi/README.md
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
Status
|
|
2
2
|
======
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
[](https://ci.appveyor.com/project/atgreen/libffi)
|
|
6
|
-
|
|
7
|
-
libffi-3.4 was released on TBD. Check the libffi web
|
|
8
|
-
page for updates: <URL:http://sourceware.org/libffi/>.
|
|
4
|
+
libffi-3.5.2 was released on August 2, 2025.
|
|
9
5
|
|
|
10
6
|
|
|
11
7
|
What is libffi?
|
|
@@ -28,7 +24,7 @@ bridge from the interpreter program to compiled code.
|
|
|
28
24
|
The libffi library provides a portable, high level programming
|
|
29
25
|
interface to various calling conventions. This allows a programmer to
|
|
30
26
|
call any function specified by a call interface description at run
|
|
31
|
-
time.
|
|
27
|
+
time.
|
|
32
28
|
|
|
33
29
|
FFI stands for Foreign Function Interface. A foreign function
|
|
34
30
|
interface is the popular name for the interface that allows code
|
|
@@ -55,6 +51,8 @@ tested:
|
|
|
55
51
|
| Alpha | Linux | GCC |
|
|
56
52
|
| Alpha | Tru64 | GCC |
|
|
57
53
|
| ARC | Linux | GCC |
|
|
54
|
+
| ARC32 | Linux | GCC |
|
|
55
|
+
| ARC64 | Linux | GCC |
|
|
58
56
|
| ARM | Linux | GCC |
|
|
59
57
|
| ARM | iOS | GCC |
|
|
60
58
|
| ARM | Windows | MSVC |
|
|
@@ -62,8 +60,10 @@ tested:
|
|
|
62
60
|
| Blackfin | uClinux | GCC |
|
|
63
61
|
| CSKY | Linux | GCC |
|
|
64
62
|
| HPPA | HPUX | GCC |
|
|
63
|
+
| HPPA64 | HPUX | GCC |
|
|
65
64
|
| KVX | Linux | GCC |
|
|
66
65
|
| IA-64 | Linux | GCC |
|
|
66
|
+
| LoongArch64 | Linux | GCC |
|
|
67
67
|
| M68K | FreeMiNT | GCC |
|
|
68
68
|
| M68K | Linux | GCC |
|
|
69
69
|
| M68K | RTEMS | GCC |
|
|
@@ -75,8 +75,8 @@ tested:
|
|
|
75
75
|
| MIPS | RTEMS | GCC |
|
|
76
76
|
| MIPS64 | Linux | GCC |
|
|
77
77
|
| Moxie | Bare metal | GCC |
|
|
78
|
-
| Nios II | Linux | GCC |
|
|
79
78
|
| OpenRISC | Linux | GCC |
|
|
79
|
+
| PowerPC 32-bit | AIX | GCC |
|
|
80
80
|
| PowerPC 32-bit | AIX | IBM XL C |
|
|
81
81
|
| PowerPC 64-bit | AIX | IBM XL C |
|
|
82
82
|
| PowerPC | AMIGA | GCC |
|
|
@@ -90,6 +90,9 @@ tested:
|
|
|
90
90
|
| RISC-V 64-bit | Linux | GCC |
|
|
91
91
|
| S390 | Linux | GCC |
|
|
92
92
|
| S390X | Linux | GCC |
|
|
93
|
+
| SH3 | Linux | GCC |
|
|
94
|
+
| SH4 | Linux | GCC |
|
|
95
|
+
| SH5/SH64 | Linux | GCC |
|
|
93
96
|
| SPARC | Linux | GCC |
|
|
94
97
|
| SPARC | Solaris | GCC |
|
|
95
98
|
| SPARC | Solaris | Oracle Solaris Studio C |
|
|
@@ -98,6 +101,8 @@ tested:
|
|
|
98
101
|
| SPARC64 | Solaris | Oracle Solaris Studio C |
|
|
99
102
|
| TILE-Gx/TILEPro | Linux | GCC |
|
|
100
103
|
| VAX | OpenBSD/vax | GCC |
|
|
104
|
+
| WASM32 | Emscripten | EMCC |
|
|
105
|
+
| WASM64 | Emscripten | EMCC |
|
|
101
106
|
| X86 | FreeBSD | GCC |
|
|
102
107
|
| X86 | GNU HURD | GCC |
|
|
103
108
|
| X86 | Interix | GCC |
|
|
@@ -108,14 +113,15 @@ tested:
|
|
|
108
113
|
| X86 | Solaris | GCC |
|
|
109
114
|
| X86 | Solaris | Oracle Solaris Studio C |
|
|
110
115
|
| X86 | Windows/Cygwin | GCC |
|
|
111
|
-
| X86 | Windows/
|
|
116
|
+
| X86 | Windows/MinGW | GCC |
|
|
117
|
+
| X86-64 | DragonFly BSD | GCC |
|
|
112
118
|
| X86-64 | FreeBSD | GCC |
|
|
113
119
|
| X86-64 | Linux | GCC |
|
|
114
120
|
| X86-64 | Linux/x32 | GCC |
|
|
115
121
|
| X86-64 | OpenBSD | GCC |
|
|
116
122
|
| X86-64 | Solaris | Oracle Solaris Studio C |
|
|
117
123
|
| X86-64 | Windows/Cygwin | GCC |
|
|
118
|
-
| X86-64 | Windows/
|
|
124
|
+
| X86-64 | Windows/MinGW | GCC |
|
|
119
125
|
| X86-64 | Mac OSX | GCC |
|
|
120
126
|
| Xtensa | Linux | GCC |
|
|
121
127
|
|
|
@@ -133,19 +139,19 @@ compiler.
|
|
|
133
139
|
|
|
134
140
|
If you're building libffi directly from git hosted sources, configure
|
|
135
141
|
won't exist yet; run ./autogen.sh first. This will require that you
|
|
136
|
-
install autoconf, automake and
|
|
142
|
+
install autoconf, automake, libtool and texinfo.
|
|
137
143
|
|
|
138
144
|
You may want to tell configure where to install the libffi library and
|
|
139
145
|
header files. To do that, use the ``--prefix`` configure switch. Libffi
|
|
140
|
-
will install under /usr/local by default.
|
|
146
|
+
will install under /usr/local by default.
|
|
141
147
|
|
|
142
148
|
If you want to enable extra run-time debugging checks use the the
|
|
143
149
|
``--enable-debug`` configure switch. This is useful when your program dies
|
|
144
|
-
mysteriously while using libffi.
|
|
150
|
+
mysteriously while using libffi.
|
|
145
151
|
|
|
146
152
|
Another useful configure switch is ``--enable-purify-safety``. Using this
|
|
147
153
|
will add some extra code which will suppress certain warnings when you
|
|
148
|
-
are using Purify with libffi. Only use this switch when using
|
|
154
|
+
are using Purify with libffi. Only use this switch when using
|
|
149
155
|
Purify, as it will slow down the library.
|
|
150
156
|
|
|
151
157
|
If you don't want to build documentation, use the ``--disable-docs``
|
|
@@ -155,7 +161,7 @@ It's also possible to build libffi on Windows platforms with
|
|
|
155
161
|
Microsoft's Visual C++ compiler. In this case, use the msvcc.sh
|
|
156
162
|
wrapper script during configuration like so:
|
|
157
163
|
|
|
158
|
-
path/to/configure CC=path/to/msvcc.sh CXX=path/to/msvcc.sh LD=link CPP="cl -nologo -EP" CPPFLAGS="-DFFI_BUILDING_DLL"
|
|
164
|
+
path/to/configure CC=path/to/msvcc.sh CXX=path/to/msvcc.sh LD=link CPP="cl -nologo -EP" CXXCPP="cl -nologo -EP" CPPFLAGS="-DFFI_BUILDING_DLL"
|
|
159
165
|
|
|
160
166
|
For 64-bit Windows builds, use ``CC="path/to/msvcc.sh -m64"`` and
|
|
161
167
|
``CXX="path/to/msvcc.sh -m64"``. You may also need to specify
|
|
@@ -164,7 +170,7 @@ For 64-bit Windows builds, use ``CC="path/to/msvcc.sh -m64"`` and
|
|
|
164
170
|
It is also possible to build libffi on Windows platforms with the LLVM
|
|
165
171
|
project's clang-cl compiler, like below:
|
|
166
172
|
|
|
167
|
-
path/to/configure CC="path/to/msvcc.sh -clang-cl" CXX="path/to/msvcc.sh -clang-cl" LD=link CPP="clang-cl -EP"
|
|
173
|
+
path/to/configure CC="path/to/msvcc.sh -clang-cl" CXX="path/to/msvcc.sh -clang-cl" LD=link CPP="clang-cl -EP"
|
|
168
174
|
|
|
169
175
|
When building with MSVC under a MingW environment, you may need to
|
|
170
176
|
remove the line in configure that sets 'fix_srcfile_path' to a 'cygpath'
|
|
@@ -198,14 +204,79 @@ History
|
|
|
198
204
|
|
|
199
205
|
See the git log for details at http://github.com/libffi/libffi.
|
|
200
206
|
|
|
201
|
-
3.
|
|
202
|
-
|
|
207
|
+
3.5.2 Aug-2-2025
|
|
208
|
+
Add wasm64 support.
|
|
209
|
+
Add DragonFly BSD support.
|
|
210
|
+
Ensure trampoline file descriptors are closed on exec.
|
|
211
|
+
|
|
212
|
+
3.5.1 Jun-10-2025
|
|
213
|
+
Fix symbol versioning error.
|
|
214
|
+
|
|
215
|
+
3.5.0 Jun-8-2025
|
|
216
|
+
Add FFI_VERSION_STRING and FFI_VERSION_NUMBER macros, as well
|
|
217
|
+
as ffi_get_version() and ffi_get_version_number() functions.
|
|
218
|
+
Add ffi_get_default_abi() and ffi_get_closure_size() functions.
|
|
219
|
+
Fix closures on powerpc64-linux when statically linking.
|
|
220
|
+
Mark the PA stack as non-executable.
|
|
221
|
+
|
|
222
|
+
3.4.8 Apr-9-2025
|
|
223
|
+
Add static trampoline support for powerpc-linux (32-bit SYSV BE),
|
|
224
|
+
powerpc64-linux (64-bit ELFv1 BE) and
|
|
225
|
+
powerpc64le-linux (64-bit ELFv2 LE)
|
|
226
|
+
Various x86-64 bug fixes (x32 ABI and improper memory access for
|
|
227
|
+
small argument calls).
|
|
228
|
+
Fix to enable pointer authentication for aarch64.
|
|
229
|
+
|
|
230
|
+
3.4.7 Feb-8-2025
|
|
231
|
+
Add static trampoline support for Linux on s390x.
|
|
232
|
+
Fix BTI support for ARM64.
|
|
233
|
+
Support pointer authentication for ARM64.
|
|
234
|
+
Fix ASAN compatibility.
|
|
235
|
+
Fix x86-64 calls with 6 GP registers and some SSE registers.
|
|
236
|
+
Miscellaneous fixes for ARC and Darwin ARM64.
|
|
237
|
+
Fix OpenRISC or1k and Solaris 10 builds.
|
|
238
|
+
Remove nios2 port.
|
|
239
|
+
|
|
240
|
+
3.4.6 Feb-18-2024
|
|
241
|
+
Fix long double regression on mips64 and alpha.
|
|
242
|
+
|
|
243
|
+
3.4.5 Feb-15-2024
|
|
244
|
+
Add support for wasm32.
|
|
245
|
+
Add support for aarch64 branch target identification (bti).
|
|
246
|
+
Add support for ARCv3: ARC32 & ARC64.
|
|
247
|
+
Add support for HPPA64, and many HPPA fixes.
|
|
248
|
+
Add support for Haikuos on PowerPC.
|
|
249
|
+
Fixes for AIX, loongson, MIPS, power, sparc64, and x86 Darwin.
|
|
250
|
+
|
|
251
|
+
3.4.4 Oct-23-2022
|
|
252
|
+
Important aarch64 fixes, including support for linux builds
|
|
253
|
+
with Link Time Optimization (-flto).
|
|
254
|
+
Fix x86 stdcall stack alignment.
|
|
255
|
+
Fix x86 Windows msvc assembler compatibility.
|
|
256
|
+
Fix moxie and or1k small structure args.
|
|
257
|
+
|
|
258
|
+
3.4.3 Sep-19-2022
|
|
259
|
+
All struct args are passed by value, regardless of size, as per ABIs.
|
|
260
|
+
Enable static trampolines for Cygwin.
|
|
261
|
+
Add support for Loongson's LoongArch64 architecture.
|
|
262
|
+
Fix x32 static trampolines.
|
|
263
|
+
Fix 32-bit x86 stdcall stack corruption.
|
|
264
|
+
Fix ILP32 aarch64 support.
|
|
265
|
+
|
|
266
|
+
3.4.2 Jun-28-2021
|
|
267
|
+
Add static trampoline support for Linux on x86_64 and ARM64.
|
|
268
|
+
Add support for Alibaba's CSKY architecture.
|
|
269
|
+
Add support for Kalray's KVX architecture.
|
|
203
270
|
Add support for Intel Control-flow Enforcement Technology (CET).
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
271
|
+
Add support for ARM Pointer Authentication (PA).
|
|
272
|
+
Fix 32-bit PPC regression.
|
|
273
|
+
Fix MIPS soft-float problem.
|
|
274
|
+
Enable tmpdir override with the $LIBFFI_TMPDIR environment variable.
|
|
275
|
+
Enable compatibility with MSVC runtime stack checking.
|
|
276
|
+
Reject float and small integer argument in ffi_prep_cif_var().
|
|
277
|
+
Callers must promote these types themselves.
|
|
278
|
+
|
|
279
|
+
3.3 Nov-23-2019
|
|
209
280
|
Add RISC-V support.
|
|
210
281
|
New API in support of GO closures.
|
|
211
282
|
Add IEEE754 binary128 long double support for 64-bit Power
|
|
@@ -216,19 +287,19 @@ See the git log for details at http://github.com/libffi/libffi.
|
|
|
216
287
|
Raw java (gcj) API deprecated.
|
|
217
288
|
Add pre-built PDF documentation to source distribution.
|
|
218
289
|
Many new test cases and bug fixes.
|
|
219
|
-
|
|
220
|
-
3.2.1 Nov-12-
|
|
290
|
+
|
|
291
|
+
3.2.1 Nov-12-2014
|
|
221
292
|
Build fix for non-iOS AArch64 targets.
|
|
222
|
-
|
|
223
|
-
3.2 Nov-11-
|
|
293
|
+
|
|
294
|
+
3.2 Nov-11-2014
|
|
224
295
|
Add C99 Complex Type support (currently only supported on
|
|
225
296
|
s390).
|
|
226
297
|
Add support for PASCAL and REGISTER calling conventions on x86
|
|
227
298
|
Windows/Linux.
|
|
228
299
|
Add OpenRISC and Cygwin-64 support.
|
|
229
300
|
Bug fixes.
|
|
230
|
-
|
|
231
|
-
3.1 May-19-
|
|
301
|
+
|
|
302
|
+
3.1 May-19-2014
|
|
232
303
|
Add AArch64 (ARM64) iOS support.
|
|
233
304
|
Add Nios II support.
|
|
234
305
|
Add m88k and DEC VAX support.
|
|
@@ -240,8 +311,8 @@ See the git log for details at http://github.com/libffi/libffi.
|
|
|
240
311
|
failures, and respect the $CC and $CXX environment variables.
|
|
241
312
|
Archive off the manually maintained ChangeLog in favor of git
|
|
242
313
|
log.
|
|
243
|
-
|
|
244
|
-
3.0.13 Mar-17-
|
|
314
|
+
|
|
315
|
+
3.0.13 Mar-17-2013
|
|
245
316
|
Add Meta support.
|
|
246
317
|
Add missing Moxie bits.
|
|
247
318
|
Fix stack alignment bug on 32-bit x86.
|
|
@@ -250,8 +321,8 @@ See the git log for details at http://github.com/libffi/libffi.
|
|
|
250
321
|
Fix the install dir location for some platforms when building
|
|
251
322
|
with GCC (OS X, Solaris).
|
|
252
323
|
Fix Cygwin regression.
|
|
253
|
-
|
|
254
|
-
3.0.12 Feb-11-
|
|
324
|
+
|
|
325
|
+
3.0.12 Feb-11-2013
|
|
255
326
|
Add Moxie support.
|
|
256
327
|
Add AArch64 support.
|
|
257
328
|
Add Blackfin support.
|
|
@@ -262,8 +333,8 @@ See the git log for details at http://github.com/libffi/libffi.
|
|
|
262
333
|
Add support for native vendor compilers on
|
|
263
334
|
Solaris and AIX.
|
|
264
335
|
Work around LLVM/GCC interoperability issue on x86_64.
|
|
265
|
-
|
|
266
|
-
3.0.11 Apr-11-
|
|
336
|
+
|
|
337
|
+
3.0.11 Apr-11-2012
|
|
267
338
|
Lots of build fixes.
|
|
268
339
|
Add support for variadic functions (ffi_prep_cif_var).
|
|
269
340
|
Add Linux/x32 support.
|
|
@@ -273,8 +344,8 @@ See the git log for details at http://github.com/libffi/libffi.
|
|
|
273
344
|
Integration with iOS' xcode build tools.
|
|
274
345
|
Fix Octeon and MC68881 support.
|
|
275
346
|
Fix code pessimizations.
|
|
276
|
-
|
|
277
|
-
3.0.10 Aug-23-
|
|
347
|
+
|
|
348
|
+
3.0.10 Aug-23-2011
|
|
278
349
|
Add support for Apple's iOS.
|
|
279
350
|
Add support for ARM VFP ABI.
|
|
280
351
|
Add RTEMS support for MIPS and M68K.
|
|
@@ -287,129 +358,129 @@ See the git log for details at http://github.com/libffi/libffi.
|
|
|
287
358
|
Solaris compiler.
|
|
288
359
|
Testsuite fixes for Tru64 Unix.
|
|
289
360
|
Additional platform support.
|
|
290
|
-
|
|
291
|
-
3.0.9 Dec-31-
|
|
361
|
+
|
|
362
|
+
3.0.9 Dec-31-2009
|
|
292
363
|
Add AVR32 and win64 ports. Add ARM softfp support.
|
|
293
364
|
Many fixes for AIX, Solaris, HP-UX, *BSD.
|
|
294
365
|
Several PowerPC and x86-64 bug fixes.
|
|
295
366
|
Build DLL for windows.
|
|
296
|
-
|
|
297
|
-
3.0.8 Dec-19-
|
|
367
|
+
|
|
368
|
+
3.0.8 Dec-19-2008
|
|
298
369
|
Add *BSD, BeOS, and PA-Linux support.
|
|
299
|
-
|
|
300
|
-
3.0.7 Nov-11-
|
|
370
|
+
|
|
371
|
+
3.0.7 Nov-11-2008
|
|
301
372
|
Fix for ppc FreeBSD.
|
|
302
373
|
(thanks to Andreas Tobler)
|
|
303
|
-
|
|
304
|
-
3.0.6 Jul-17-
|
|
374
|
+
|
|
375
|
+
3.0.6 Jul-17-2008
|
|
305
376
|
Fix for closures on sh.
|
|
306
377
|
Mark the sh/sh64 stack as non-executable.
|
|
307
378
|
(both thanks to Kaz Kojima)
|
|
308
|
-
|
|
309
|
-
3.0.5 Apr-3-
|
|
379
|
+
|
|
380
|
+
3.0.5 Apr-3-2008
|
|
310
381
|
Fix libffi.pc file.
|
|
311
382
|
Fix #define ARM for IcedTea users.
|
|
312
383
|
Fix x86 closure bug.
|
|
313
|
-
|
|
314
|
-
3.0.4 Feb-24-
|
|
384
|
+
|
|
385
|
+
3.0.4 Feb-24-2008
|
|
315
386
|
Fix x86 OpenBSD configury.
|
|
316
|
-
|
|
317
|
-
3.0.3 Feb-22-
|
|
387
|
+
|
|
388
|
+
3.0.3 Feb-22-2008
|
|
318
389
|
Enable x86 OpenBSD thanks to Thomas Heller, and
|
|
319
390
|
x86-64 FreeBSD thanks to Björn König and Andreas Tobler.
|
|
320
391
|
Clean up test instruction in README.
|
|
321
|
-
|
|
322
|
-
3.0.2 Feb-21-
|
|
392
|
+
|
|
393
|
+
3.0.2 Feb-21-2008
|
|
323
394
|
Improved x86 FreeBSD support.
|
|
324
395
|
Thanks to Björn König.
|
|
325
|
-
|
|
326
|
-
3.0.1 Feb-15-
|
|
396
|
+
|
|
397
|
+
3.0.1 Feb-15-2008
|
|
327
398
|
Fix instruction cache flushing bug on MIPS.
|
|
328
399
|
Thanks to David Daney.
|
|
329
|
-
|
|
330
|
-
3.0.0 Feb-15-
|
|
400
|
+
|
|
401
|
+
3.0.0 Feb-15-2008
|
|
331
402
|
Many changes, mostly thanks to the GCC project.
|
|
332
403
|
Cygnus Solutions is now Red Hat.
|
|
333
|
-
|
|
404
|
+
|
|
334
405
|
[10 years go by...]
|
|
335
|
-
|
|
336
|
-
1.20 Oct-5-
|
|
406
|
+
|
|
407
|
+
1.20 Oct-5-1998
|
|
337
408
|
Raffaele Sena produces ARM port.
|
|
338
|
-
|
|
339
|
-
1.19 Oct-5-
|
|
409
|
+
|
|
410
|
+
1.19 Oct-5-1998
|
|
340
411
|
Fixed x86 long double and long long return support.
|
|
341
412
|
m68k bug fixes from Andreas Schwab.
|
|
342
413
|
Patch for DU assembler compatibility for the Alpha from Richard
|
|
343
414
|
Henderson.
|
|
344
|
-
|
|
345
|
-
1.18 Apr-17-
|
|
415
|
+
|
|
416
|
+
1.18 Apr-17-1998
|
|
346
417
|
Bug fixes and MIPS configuration changes.
|
|
347
|
-
|
|
348
|
-
1.17 Feb-24-
|
|
418
|
+
|
|
419
|
+
1.17 Feb-24-1998
|
|
349
420
|
Bug fixes and m68k port from Andreas Schwab. PowerPC port from
|
|
350
421
|
Geoffrey Keating. Various bug x86, Sparc and MIPS bug fixes.
|
|
351
|
-
|
|
352
|
-
1.16 Feb-11-
|
|
422
|
+
|
|
423
|
+
1.16 Feb-11-1998
|
|
353
424
|
Richard Henderson produces Alpha port.
|
|
354
|
-
|
|
355
|
-
1.15 Dec-4-
|
|
425
|
+
|
|
426
|
+
1.15 Dec-4-1997
|
|
356
427
|
Fixed an n32 ABI bug. New libtool, auto* support.
|
|
357
|
-
|
|
428
|
+
|
|
358
429
|
1.14 May-13-97
|
|
359
430
|
libtool is now used to generate shared and static libraries.
|
|
360
431
|
Fixed a minor portability problem reported by Russ McManus
|
|
361
432
|
<mcmanr@eq.gs.com>.
|
|
362
|
-
|
|
363
|
-
1.13 Dec-2-
|
|
433
|
+
|
|
434
|
+
1.13 Dec-2-1996
|
|
364
435
|
Added --enable-purify-safety to keep Purify from complaining
|
|
365
436
|
about certain low level code.
|
|
366
437
|
Sparc fix for calling functions with < 6 args.
|
|
367
438
|
Linux x86 a.out fix.
|
|
368
|
-
|
|
369
|
-
1.12 Nov-22-
|
|
370
|
-
Added missing ffi_type_void, needed for supporting void return
|
|
371
|
-
types. Fixed test case for non MIPS machines. Cygnus Support
|
|
372
|
-
is now Cygnus Solutions.
|
|
373
|
-
|
|
374
|
-
1.11 Oct-30-
|
|
439
|
+
|
|
440
|
+
1.12 Nov-22-1996
|
|
441
|
+
Added missing ffi_type_void, needed for supporting void return
|
|
442
|
+
types. Fixed test case for non MIPS machines. Cygnus Support
|
|
443
|
+
is now Cygnus Solutions.
|
|
444
|
+
|
|
445
|
+
1.11 Oct-30-1996
|
|
375
446
|
Added notes about GNU make.
|
|
376
|
-
|
|
377
|
-
1.10 Oct-29-
|
|
447
|
+
|
|
448
|
+
1.10 Oct-29-1996
|
|
378
449
|
Added configuration fix for non GNU compilers.
|
|
379
|
-
|
|
380
|
-
1.09 Oct-29-
|
|
381
|
-
Added --enable-debug configure switch. Clean-ups based on LCLint
|
|
382
|
-
feedback. ffi_mips.h is always installed. Many configuration
|
|
450
|
+
|
|
451
|
+
1.09 Oct-29-1996
|
|
452
|
+
Added --enable-debug configure switch. Clean-ups based on LCLint
|
|
453
|
+
feedback. ffi_mips.h is always installed. Many configuration
|
|
383
454
|
fixes. Fixed ffitest.c for sparc builds.
|
|
384
|
-
|
|
385
|
-
1.08 Oct-15-
|
|
455
|
+
|
|
456
|
+
1.08 Oct-15-1996
|
|
386
457
|
Fixed n32 problem. Many clean-ups.
|
|
387
|
-
|
|
388
|
-
1.07 Oct-14-
|
|
458
|
+
|
|
459
|
+
1.07 Oct-14-1996
|
|
389
460
|
Gordon Irlam rewrites v8.S again. Bug fixes.
|
|
390
|
-
|
|
391
|
-
1.06 Oct-14-
|
|
392
|
-
Gordon Irlam improved the sparc port.
|
|
393
|
-
|
|
394
|
-
1.05 Oct-14-
|
|
461
|
+
|
|
462
|
+
1.06 Oct-14-1996
|
|
463
|
+
Gordon Irlam improved the sparc port.
|
|
464
|
+
|
|
465
|
+
1.05 Oct-14-1996
|
|
395
466
|
Interface changes based on feedback.
|
|
396
|
-
|
|
397
|
-
1.04 Oct-11-
|
|
467
|
+
|
|
468
|
+
1.04 Oct-11-1996
|
|
398
469
|
Sparc port complete (modulo struct passing bug).
|
|
399
|
-
|
|
400
|
-
1.03 Oct-10-
|
|
470
|
+
|
|
471
|
+
1.03 Oct-10-1996
|
|
401
472
|
Passing struct args, and returning struct values works for
|
|
402
473
|
all architectures/calling conventions. Expanded tests.
|
|
403
|
-
|
|
404
|
-
1.02 Oct-9-
|
|
474
|
+
|
|
475
|
+
1.02 Oct-9-1996
|
|
405
476
|
Added SGI n32 support. Fixed bugs in both o32 and Linux support.
|
|
406
477
|
Added "make test".
|
|
407
|
-
|
|
408
|
-
1.01 Oct-8-
|
|
478
|
+
|
|
479
|
+
1.01 Oct-8-1996
|
|
409
480
|
Fixed float passing bug in mips version. Restructured some
|
|
410
481
|
of the code. Builds cleanly with SGI tools.
|
|
411
|
-
|
|
412
|
-
1.00 Oct-7-
|
|
482
|
+
|
|
483
|
+
1.00 Oct-7-1996
|
|
413
484
|
First release. No public announcement.
|
|
414
485
|
|
|
415
486
|
Authors & Credits
|
|
@@ -437,9 +508,12 @@ developers:
|
|
|
437
508
|
avr32 Bradley Smith
|
|
438
509
|
blackfin Alexandre Keunecke I. de Mendonca
|
|
439
510
|
cris Simon Posnjak, Hans-Peter Nilsson
|
|
440
|
-
csky
|
|
511
|
+
csky Ma Jun, Zhang Wenmeng
|
|
441
512
|
frv Anthony Green
|
|
442
513
|
ia64 Hans Boehm
|
|
514
|
+
kvx Yann Sionneau
|
|
515
|
+
loongarch64 Cheng Lulu, Xi Ruoyao, Xu Hao,
|
|
516
|
+
Zhang Wenlong, Pan Xuefeng
|
|
443
517
|
m32r Kazuhiro Inaoka
|
|
444
518
|
m68k Andreas Schwab
|
|
445
519
|
m88k Miod Vallat
|
|
@@ -451,6 +525,7 @@ developers:
|
|
|
451
525
|
nios ii Sandra Loosemore
|
|
452
526
|
openrisc Sebastian Macke
|
|
453
527
|
pa Randolph Chung, Dave Anglin, Andreas Tobler
|
|
528
|
+
pa64 Dave Anglin
|
|
454
529
|
powerpc Geoffrey Keating, Andreas Tobler,
|
|
455
530
|
David Edelsohn, John Hornkvist
|
|
456
531
|
powerpc64 Jakub Jelinek
|
|
@@ -461,6 +536,7 @@ developers:
|
|
|
461
536
|
sparc Anthony Green, Gordon Irlam
|
|
462
537
|
tile-gx/tilepro Walter Lee
|
|
463
538
|
vax Miod Vallat
|
|
539
|
+
wasm32 Hood Chatham, Brion Vibber, Kleis Auke Wolthuizen
|
|
464
540
|
x86 Anthony Green, Jon Beniston
|
|
465
541
|
x86-64 Bo Thorsen
|
|
466
542
|
xtensa Chris Zankel
|
|
@@ -481,6 +557,11 @@ Alex Oliva solved the executable page problem for SElinux.
|
|
|
481
557
|
The list above is almost certainly incomplete and inaccurate. I'm
|
|
482
558
|
happy to make corrections or additions upon request.
|
|
483
559
|
|
|
484
|
-
If you have a problem, or have found a bug, please
|
|
485
|
-
|
|
486
|
-
|
|
560
|
+
If you have a problem, or have found a bug, please file an issue on
|
|
561
|
+
our issue tracker at https://github.com/libffi/libffi/issues.
|
|
562
|
+
|
|
563
|
+
The author can be reached at green@moxielogic.com.
|
|
564
|
+
|
|
565
|
+
To subscribe/unsubscribe to our mailing lists, visit:
|
|
566
|
+
https://sourceware.org/mailman/listinfo/libffi-announce
|
|
567
|
+
https://sourceware.org/mailman/listinfo/libffi-discuss
|