ffi 1.9.25 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (339) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +212 -0
  3. data/Gemfile +3 -4
  4. data/README.md +38 -18
  5. data/Rakefile +55 -146
  6. data/ext/ffi_c/AbstractMemory.c +29 -34
  7. data/ext/ffi_c/Buffer.c +4 -9
  8. data/ext/ffi_c/Call.c +16 -49
  9. data/ext/ffi_c/Call.h +4 -7
  10. data/ext/ffi_c/ClosurePool.c +75 -25
  11. data/ext/ffi_c/ClosurePool.h +3 -1
  12. data/ext/ffi_c/DynamicLibrary.c +2 -7
  13. data/ext/ffi_c/Function.c +47 -131
  14. data/ext/ffi_c/Function.h +0 -4
  15. data/ext/ffi_c/FunctionInfo.c +3 -8
  16. data/ext/ffi_c/LastError.c +49 -8
  17. data/ext/ffi_c/LongDouble.c +12 -10
  18. data/ext/ffi_c/LongDouble.h +0 -4
  19. data/ext/ffi_c/MemoryPointer.c +3 -8
  20. data/ext/ffi_c/MemoryPointer.h +0 -4
  21. data/ext/ffi_c/MethodHandle.c +21 -31
  22. data/ext/ffi_c/MethodHandle.h +3 -2
  23. data/ext/ffi_c/Platform.c +3 -54
  24. data/ext/ffi_c/Pointer.c +25 -26
  25. data/ext/ffi_c/Pointer.h +0 -4
  26. data/ext/ffi_c/Struct.c +49 -56
  27. data/ext/ffi_c/Struct.h +12 -6
  28. data/ext/ffi_c/StructByValue.c +2 -7
  29. data/ext/ffi_c/StructLayout.c +22 -20
  30. data/ext/ffi_c/Thread.c +4 -228
  31. data/ext/ffi_c/Thread.h +1 -20
  32. data/ext/ffi_c/Type.c +1 -19
  33. data/ext/ffi_c/Type.h +0 -1
  34. data/ext/ffi_c/Types.c +7 -8
  35. data/ext/ffi_c/Types.h +3 -4
  36. data/ext/ffi_c/Variadic.c +23 -24
  37. data/ext/ffi_c/compat.h +4 -0
  38. data/ext/ffi_c/extconf.rb +53 -30
  39. data/ext/ffi_c/ffi.c +3 -8
  40. data/ext/ffi_c/libffi.darwin.mk +1 -1
  41. data/ext/ffi_c/libffi/.appveyor.yml +29 -13
  42. data/ext/ffi_c/libffi/.gitattributes +4 -0
  43. data/ext/ffi_c/libffi/.travis.yml +51 -2
  44. data/ext/ffi_c/libffi/.travis/bfin-sim.exp +58 -0
  45. data/ext/ffi_c/libffi/.travis/build-cross-in-container.sh +14 -0
  46. data/ext/ffi_c/libffi/.travis/build-in-container.sh +12 -0
  47. data/ext/ffi_c/libffi/.travis/build.sh +116 -8
  48. data/ext/ffi_c/libffi/.travis/install.sh +65 -16
  49. data/ext/ffi_c/libffi/.travis/m32r-sim.exp +58 -0
  50. data/ext/ffi_c/libffi/.travis/moxie-sim.exp +1 -1
  51. data/ext/ffi_c/libffi/.travis/or1k-sim.exp +58 -0
  52. data/ext/ffi_c/libffi/.travis/powerpc-eabisim.exp +58 -0
  53. data/ext/ffi_c/libffi/.travis/site.exp +10 -1
  54. data/ext/ffi_c/libffi/.travis/wine-sim.exp +55 -0
  55. data/ext/ffi_c/libffi/{ChangeLog.libffi-3.1 → ChangeLog.old} +1407 -0
  56. data/ext/ffi_c/libffi/LICENSE +1 -1
  57. data/ext/ffi_c/libffi/LICENSE-BUILDTOOLS +5 -4
  58. data/ext/ffi_c/libffi/Makefile.am +56 -72
  59. data/ext/ffi_c/libffi/README.md +33 -8
  60. data/ext/ffi_c/libffi/config.guess +552 -331
  61. data/ext/ffi_c/libffi/config.sub +1321 -1306
  62. data/ext/ffi_c/libffi/configure.ac +37 -12
  63. data/ext/ffi_c/libffi/configure.host +56 -27
  64. data/ext/ffi_c/libffi/doc/Makefile.am +3 -0
  65. data/ext/ffi_c/libffi/doc/libffi.texi +997 -0
  66. data/ext/ffi_c/libffi/doc/version.texi +4 -0
  67. data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +2 -4
  68. data/ext/ffi_c/libffi/include/ffi.h.in +19 -7
  69. data/ext/ffi_c/libffi/include/ffi_common.h +5 -1
  70. data/ext/ffi_c/libffi/libffi.map.in +8 -12
  71. data/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +2 -48
  72. data/ext/ffi_c/libffi/libtool-version +1 -1
  73. data/ext/ffi_c/libffi/m4/asmcfi.m4 +1 -1
  74. data/ext/ffi_c/libffi/m4/ax_append_flag.m4 +5 -26
  75. data/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +5 -26
  76. data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +2 -1
  77. data/ext/ffi_c/libffi/m4/ax_configure_args.m4 +5 -26
  78. data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +7 -3
  79. data/ext/ffi_c/libffi/make_sunver.pl +333 -0
  80. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.sln +33 -0
  81. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj +130 -0
  82. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.filters +57 -0
  83. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.user +4 -0
  84. data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h +511 -0
  85. data/ext/ffi_c/libffi/msvcc.sh +38 -13
  86. data/ext/ffi_c/libffi/src/aarch64/ffi.c +153 -69
  87. data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +19 -3
  88. data/ext/ffi_c/libffi/src/aarch64/internal.h +1 -0
  89. data/ext/ffi_c/libffi/src/aarch64/sysv.S +22 -9
  90. data/ext/ffi_c/libffi/src/aarch64/win64_armasm.S +506 -0
  91. data/ext/ffi_c/libffi/src/arm/ffi.c +62 -5
  92. data/ext/ffi_c/libffi/src/arm/ffitarget.h +8 -1
  93. data/ext/ffi_c/libffi/src/arm/sysv.S +6 -4
  94. data/ext/ffi_c/libffi/src/arm/sysv_msvc_arm32.S +311 -0
  95. data/ext/ffi_c/libffi/src/closures.c +69 -14
  96. data/ext/ffi_c/libffi/src/csky/ffi.c +395 -0
  97. data/ext/ffi_c/libffi/src/csky/ffitarget.h +63 -0
  98. data/ext/ffi_c/libffi/src/csky/sysv.S +371 -0
  99. data/ext/ffi_c/libffi/src/dlmalloc.c +1 -1
  100. data/ext/ffi_c/libffi/src/frv/ffi.c +1 -1
  101. data/ext/ffi_c/libffi/src/kvx/asm.h +5 -0
  102. data/ext/ffi_c/libffi/src/kvx/ffi.c +273 -0
  103. data/ext/ffi_c/libffi/src/kvx/ffitarget.h +75 -0
  104. data/ext/ffi_c/libffi/src/kvx/sysv.S +127 -0
  105. data/ext/ffi_c/libffi/src/metag/ffi.c +1 -1
  106. data/ext/ffi_c/libffi/src/mips/ffi.c +5 -1
  107. data/ext/ffi_c/libffi/src/mips/ffitarget.h +1 -1
  108. data/ext/ffi_c/libffi/src/mips/o32.S +2 -0
  109. data/ext/ffi_c/libffi/src/moxie/ffi.c +1 -1
  110. data/ext/ffi_c/libffi/src/pa/ffi.c +46 -91
  111. data/ext/ffi_c/libffi/src/pa/ffitarget.h +1 -6
  112. data/ext/ffi_c/libffi/src/pa/hpux32.S +4 -2
  113. data/ext/ffi_c/libffi/src/pa/linux.S +27 -4
  114. data/ext/ffi_c/libffi/src/powerpc/ffi.c +6 -4
  115. data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +13 -1
  116. data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +211 -32
  117. data/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +18 -7
  118. data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +10 -4
  119. data/ext/ffi_c/libffi/src/powerpc/linux64.S +91 -28
  120. data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +81 -5
  121. data/ext/ffi_c/libffi/src/powerpc/sysv.S +5 -7
  122. data/ext/ffi_c/libffi/src/prep_cif.c +4 -2
  123. data/ext/ffi_c/libffi/src/riscv/ffi.c +42 -6
  124. data/ext/ffi_c/libffi/src/riscv/ffitarget.h +1 -0
  125. data/ext/ffi_c/libffi/src/riscv/sysv.S +86 -7
  126. data/ext/ffi_c/libffi/src/x86/ffi.c +29 -12
  127. data/ext/ffi_c/libffi/src/x86/ffi64.c +22 -11
  128. data/ext/ffi_c/libffi/src/x86/ffitarget.h +15 -2
  129. data/ext/ffi_c/libffi/src/x86/ffiw64.c +20 -10
  130. data/ext/ffi_c/libffi/src/x86/sysv.S +105 -10
  131. data/ext/ffi_c/libffi/src/x86/sysv_intel.S +995 -0
  132. data/ext/ffi_c/libffi/src/x86/unix64.S +100 -4
  133. data/ext/ffi_c/libffi/src/x86/win64.S +12 -3
  134. data/ext/ffi_c/libffi/src/x86/win64_intel.S +3 -2
  135. data/ext/ffi_c/libffi/testsuite/Makefile.am +114 -109
  136. data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +32 -8
  137. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/bhaible.exp +7 -2
  138. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-call.c +4 -4
  139. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-callback.c +2 -2
  140. data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +12 -1
  141. data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +9 -8
  142. data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +1 -1
  143. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure.exp +67 -0
  144. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn0.c +0 -0
  145. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn1.c +0 -0
  146. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn2.c +0 -0
  147. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn3.c +0 -0
  148. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn4.c +0 -0
  149. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn5.c +0 -0
  150. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn6.c +0 -0
  151. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_loc_fn0.c +0 -0
  152. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_simple.c +0 -0
  153. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_12byte.c +0 -0
  154. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_16byte.c +0 -0
  155. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_18byte.c +0 -0
  156. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_19byte.c +0 -0
  157. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_1_1byte.c +0 -0
  158. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_20byte.c +0 -0
  159. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_20byte1.c +0 -0
  160. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_24byte.c +0 -0
  161. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_2byte.c +0 -0
  162. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3_1byte.c +0 -0
  163. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3byte1.c +0 -0
  164. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3byte2.c +0 -0
  165. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3float.c +0 -0
  166. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_4_1byte.c +0 -0
  167. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_4byte.c +0 -0
  168. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_5_1_byte.c +0 -0
  169. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_5byte.c +0 -0
  170. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_64byte.c +0 -0
  171. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_6_1_byte.c +0 -0
  172. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_6byte.c +0 -0
  173. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_7_1_byte.c +0 -0
  174. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_7byte.c +0 -0
  175. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_8byte.c +0 -0
  176. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_9byte1.c +0 -0
  177. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_9byte2.c +0 -0
  178. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_double.c +0 -0
  179. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_float.c +0 -0
  180. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble.c +0 -0
  181. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble_split.c +0 -0
  182. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble_split2.c +0 -0
  183. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_pointer.c +0 -0
  184. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint16.c +0 -0
  185. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint32.c +0 -0
  186. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint64.c +0 -0
  187. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint16.c +0 -0
  188. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint32.c +0 -0
  189. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint64.c +0 -0
  190. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_dbls_struct.c +0 -0
  191. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_double.c +0 -0
  192. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_double_va.c +0 -0
  193. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_float.c +0 -0
  194. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_longdouble.c +0 -0
  195. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_longdouble_va.c +0 -0
  196. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_many_mixed_args.c +0 -0
  197. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_many_mixed_float_double.c +0 -0
  198. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_schar.c +0 -0
  199. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_sshort.c +0 -0
  200. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_sshortchar.c +0 -0
  201. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_uchar.c +0 -0
  202. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_ushort.c +0 -0
  203. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_ushortchar.c +0 -0
  204. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_pointer.c +0 -0
  205. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_pointer_stack.c +0 -0
  206. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_schar.c +0 -0
  207. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_sint.c +0 -0
  208. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_sshort.c +0 -0
  209. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_struct_va1.c +0 -0
  210. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uchar.c +0 -0
  211. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uchar_va.c +0 -0
  212. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uint.c +0 -0
  213. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uint_va.c +0 -0
  214. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ulong_va.c +0 -0
  215. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ulonglong.c +0 -0
  216. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ushort.c +0 -0
  217. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ushort_va.c +0 -0
  218. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/err_bad_abi.c +0 -0
  219. data/ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h +138 -0
  220. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/huge_struct.c +3 -1
  221. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct.c +0 -0
  222. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct1.c +0 -0
  223. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct10.c +0 -0
  224. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct11.c +0 -0
  225. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct2.c +0 -0
  226. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct3.c +0 -0
  227. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct4.c +0 -0
  228. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct5.c +0 -0
  229. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct6.c +0 -0
  230. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct7.c +0 -0
  231. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct8.c +0 -0
  232. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct9.c +0 -0
  233. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/problem1.c +0 -0
  234. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_large.c +0 -0
  235. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_large2.c +0 -0
  236. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_medium.c +0 -0
  237. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_medium2.c +0 -0
  238. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/testclosure.c +0 -0
  239. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/unwindtest.cc +0 -0
  240. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/unwindtest_ffi_call.cc +0 -0
  241. data/ext/ffi_c/rbffi.h +0 -2
  242. data/ffi.gemspec +13 -6
  243. data/lib/ffi.rb +10 -2
  244. data/lib/ffi/abstract_memory.rb +44 -0
  245. data/lib/ffi/autopointer.rb +1 -1
  246. data/lib/ffi/data_converter.rb +67 -0
  247. data/lib/ffi/ffi.rb +3 -0
  248. data/lib/ffi/io.rb +3 -3
  249. data/lib/ffi/library.rb +12 -8
  250. data/lib/ffi/managedstruct.rb +2 -2
  251. data/lib/ffi/platform.rb +34 -10
  252. data/lib/ffi/platform/aarch64-darwin/types.conf +130 -0
  253. data/lib/ffi/platform/aarch64-freebsd/types.conf +128 -0
  254. data/lib/ffi/platform/aarch64-freebsd12/types.conf +128 -0
  255. data/lib/ffi/platform/aarch64-linux/types.conf +81 -81
  256. data/lib/ffi/platform/aarch64-openbsd/types.conf +134 -0
  257. data/lib/ffi/platform/arm-freebsd/types.conf +152 -0
  258. data/lib/ffi/platform/arm-freebsd12/types.conf +152 -0
  259. data/lib/ffi/platform/arm-linux/types.conf +110 -82
  260. data/lib/ffi/platform/i386-cygwin/types.conf +1 -1
  261. data/lib/ffi/platform/i386-darwin/types.conf +63 -63
  262. data/lib/ffi/platform/i386-freebsd/types.conf +89 -89
  263. data/lib/ffi/platform/i386-freebsd12/types.conf +152 -0
  264. data/lib/ffi/platform/i386-gnu/types.conf +84 -84
  265. data/lib/ffi/platform/i386-linux/types.conf +77 -77
  266. data/lib/ffi/platform/i386-netbsd/types.conf +87 -87
  267. data/lib/ffi/platform/i386-openbsd/types.conf +89 -89
  268. data/lib/ffi/platform/i386-solaris/types.conf +96 -96
  269. data/lib/ffi/platform/i386-windows/types.conf +43 -96
  270. data/lib/ffi/platform/ia64-linux/types.conf +79 -79
  271. data/lib/ffi/platform/mips-linux/types.conf +79 -79
  272. data/lib/ffi/platform/mips64-linux/types.conf +81 -81
  273. data/lib/ffi/platform/mips64el-linux/types.conf +81 -81
  274. data/lib/ffi/platform/mipsel-linux/types.conf +79 -79
  275. data/lib/ffi/platform/mipsisa32r6-linux/types.conf +79 -79
  276. data/lib/ffi/platform/mipsisa32r6el-linux/types.conf +79 -79
  277. data/lib/ffi/platform/mipsisa64r6-linux/types.conf +81 -81
  278. data/lib/ffi/platform/mipsisa64r6el-linux/types.conf +81 -81
  279. data/lib/ffi/platform/powerpc-aix/types.conf +155 -155
  280. data/lib/ffi/platform/powerpc-darwin/types.conf +63 -63
  281. data/lib/ffi/platform/powerpc-linux/types.conf +108 -78
  282. data/lib/ffi/platform/powerpc-openbsd/types.conf +156 -0
  283. data/lib/ffi/platform/powerpc64-linux/types.conf +81 -81
  284. data/lib/ffi/platform/powerpc64le-linux/types.conf +100 -0
  285. data/lib/ffi/platform/riscv64-linux/types.conf +104 -0
  286. data/lib/ffi/platform/s390-linux/types.conf +79 -79
  287. data/lib/ffi/platform/s390x-linux/types.conf +79 -79
  288. data/lib/ffi/platform/sparc-linux/types.conf +79 -79
  289. data/lib/ffi/platform/sparc-solaris/types.conf +103 -103
  290. data/lib/ffi/platform/sparc64-linux/types.conf +79 -79
  291. data/lib/ffi/platform/sparcv9-openbsd/types.conf +156 -0
  292. data/lib/ffi/platform/sparcv9-solaris/types.conf +103 -103
  293. data/lib/ffi/platform/x86_64-cygwin/types.conf +1 -1
  294. data/lib/ffi/platform/x86_64-darwin/types.conf +88 -84
  295. data/lib/ffi/platform/x86_64-dragonflybsd/types.conf +130 -0
  296. data/lib/ffi/platform/x86_64-freebsd/types.conf +90 -90
  297. data/lib/ffi/platform/x86_64-freebsd12/types.conf +158 -0
  298. data/lib/ffi/platform/x86_64-haiku/types.conf +117 -0
  299. data/lib/ffi/platform/x86_64-linux/types.conf +107 -77
  300. data/lib/ffi/platform/x86_64-msys/types.conf +119 -0
  301. data/lib/ffi/platform/x86_64-netbsd/types.conf +89 -89
  302. data/lib/ffi/platform/x86_64-openbsd/types.conf +86 -86
  303. data/lib/ffi/platform/x86_64-solaris/types.conf +96 -96
  304. data/lib/ffi/platform/x86_64-windows/types.conf +42 -110
  305. data/lib/ffi/pointer.rb +26 -20
  306. data/lib/ffi/struct.rb +13 -68
  307. data/lib/ffi/struct_by_reference.rb +72 -0
  308. data/lib/ffi/struct_layout.rb +96 -0
  309. data/lib/ffi/tools/const_generator.rb +5 -4
  310. data/lib/ffi/tools/generator.rb +47 -2
  311. data/lib/ffi/tools/generator_task.rb +13 -17
  312. data/lib/ffi/tools/struct_generator.rb +4 -4
  313. data/lib/ffi/tools/types_generator.rb +7 -4
  314. data/lib/ffi/types.rb +1 -1
  315. data/lib/ffi/variadic.rb +1 -10
  316. data/lib/ffi/version.rb +1 -1
  317. data/rakelib/ffi_gem_helper.rb +65 -0
  318. data/samples/getlogin.rb +1 -1
  319. data/samples/getpid.rb +1 -1
  320. data/samples/gettimeofday.rb +8 -8
  321. data/samples/hello.rb +2 -1
  322. data/samples/inotify.rb +1 -1
  323. data/samples/pty.rb +1 -2
  324. data/samples/qsort.rb +0 -1
  325. metadata +160 -122
  326. data/.gitignore +0 -22
  327. data/.gitmodules +0 -3
  328. data/.travis.yml +0 -52
  329. data/.yardopts +0 -5
  330. data/appveyor.yml +0 -22
  331. data/ext/ffi_c/DataConverter.c +0 -91
  332. data/ext/ffi_c/StructByReference.c +0 -190
  333. data/ext/ffi_c/StructByReference.h +0 -50
  334. data/ext/ffi_c/libffi/ChangeLog.libffi +0 -584
  335. data/ext/ffi_c/libffi/ChangeLog.libgcj +0 -40
  336. data/ext/ffi_c/libffi/ChangeLog.v1 +0 -764
  337. data/ext/ffi_c/win32/stdbool.h +0 -8
  338. data/ext/ffi_c/win32/stdint.h +0 -201
  339. data/samples/sample_helper.rb +0 -6
@@ -42,7 +42,11 @@
42
42
  #if defined(__clang__) || defined(__APPLE__) || (defined (__sun__) && defined(__svr4__))
43
43
  # define E(BASE, X) .balign 8
44
44
  #else
45
- # define E(BASE, X) .balign 8; .org BASE + X * 8
45
+ # ifdef __CET__
46
+ # define E(BASE, X) .balign 8; .org BASE + X * 16
47
+ # else
48
+ # define E(BASE, X) .balign 8; .org BASE + X * 8
49
+ # endif
46
50
  #endif
47
51
 
48
52
  /* ffi_call_unix64 (void *args, unsigned long bytes, unsigned flags,
@@ -58,6 +62,7 @@
58
62
 
59
63
  C(ffi_call_unix64):
60
64
  L(UW0):
65
+ _CET_ENDBR
61
66
  movq (%rsp), %r10 /* Load return address. */
62
67
  leaq (%rdi, %rsi), %rax /* Find local stack base. */
63
68
  movq %rdx, (%rax) /* Save flags. */
@@ -79,7 +84,6 @@ L(UW1):
79
84
 
80
85
  movq %rdi, %r10 /* Save a copy of the register area. */
81
86
  movq %r8, %r11 /* Save a copy of the target fn. */
82
- movl %r9d, %eax /* Set number of SSE registers. */
83
87
 
84
88
  /* Load up all argument registers. */
85
89
  movq (%r10), %rdi
@@ -88,7 +92,7 @@ L(UW1):
88
92
  movq 0x18(%r10), %rcx
89
93
  movq 0x20(%r10), %r8
90
94
  movq 0x28(%r10), %r9
91
- movl 0xb0(%r10), %eax
95
+ movl 0xb0(%r10), %eax /* Set number of SSE registers. */
92
96
  testl %eax, %eax
93
97
  jnz L(load_sse)
94
98
  L(ret_from_load_sse):
@@ -116,6 +120,11 @@ L(UW2):
116
120
  movzbl %cl, %r10d
117
121
  leaq L(store_table)(%rip), %r11
118
122
  ja L(sa)
123
+ #ifdef __CET__
124
+ /* NB: Originally, each slot is 8 byte. 4 bytes of ENDBR64 +
125
+ 4 bytes NOP padding double slot size to 16 bytes. */
126
+ addl %r10d, %r10d
127
+ #endif
119
128
  leaq (%r11, %r10, 8), %r10
120
129
 
121
130
  /* Prep for the structure cases: scratch area in redzone. */
@@ -125,57 +134,73 @@ L(UW2):
125
134
  .balign 8
126
135
  L(store_table):
127
136
  E(L(store_table), UNIX64_RET_VOID)
137
+ _CET_ENDBR
128
138
  ret
129
139
  E(L(store_table), UNIX64_RET_UINT8)
140
+ _CET_ENDBR
130
141
  movzbl %al, %eax
131
142
  movq %rax, (%rdi)
132
143
  ret
133
144
  E(L(store_table), UNIX64_RET_UINT16)
145
+ _CET_ENDBR
134
146
  movzwl %ax, %eax
135
147
  movq %rax, (%rdi)
136
148
  ret
137
149
  E(L(store_table), UNIX64_RET_UINT32)
150
+ _CET_ENDBR
138
151
  movl %eax, %eax
139
152
  movq %rax, (%rdi)
140
153
  ret
141
154
  E(L(store_table), UNIX64_RET_SINT8)
155
+ _CET_ENDBR
142
156
  movsbq %al, %rax
143
157
  movq %rax, (%rdi)
144
158
  ret
145
159
  E(L(store_table), UNIX64_RET_SINT16)
160
+ _CET_ENDBR
146
161
  movswq %ax, %rax
147
162
  movq %rax, (%rdi)
148
163
  ret
149
164
  E(L(store_table), UNIX64_RET_SINT32)
165
+ _CET_ENDBR
150
166
  cltq
151
167
  movq %rax, (%rdi)
152
168
  ret
153
169
  E(L(store_table), UNIX64_RET_INT64)
170
+ _CET_ENDBR
154
171
  movq %rax, (%rdi)
155
172
  ret
156
173
  E(L(store_table), UNIX64_RET_XMM32)
174
+ _CET_ENDBR
157
175
  movd %xmm0, (%rdi)
158
176
  ret
159
177
  E(L(store_table), UNIX64_RET_XMM64)
178
+ _CET_ENDBR
160
179
  movq %xmm0, (%rdi)
161
180
  ret
162
181
  E(L(store_table), UNIX64_RET_X87)
182
+ _CET_ENDBR
163
183
  fstpt (%rdi)
164
184
  ret
165
185
  E(L(store_table), UNIX64_RET_X87_2)
186
+ _CET_ENDBR
166
187
  fstpt (%rdi)
167
188
  fstpt 16(%rdi)
168
189
  ret
169
190
  E(L(store_table), UNIX64_RET_ST_XMM0_RAX)
191
+ _CET_ENDBR
170
192
  movq %rax, 8(%rsi)
171
193
  jmp L(s3)
172
194
  E(L(store_table), UNIX64_RET_ST_RAX_XMM0)
195
+ _CET_ENDBR
173
196
  movq %xmm0, 8(%rsi)
174
197
  jmp L(s2)
175
198
  E(L(store_table), UNIX64_RET_ST_XMM0_XMM1)
199
+ _CET_ENDBR
176
200
  movq %xmm1, 8(%rsi)
177
201
  jmp L(s3)
178
202
  E(L(store_table), UNIX64_RET_ST_RAX_RDX)
203
+ _CET_ENDBR
179
204
  movq %rdx, 8(%rsi)
180
205
  L(s2):
181
206
  movq %rax, (%rsi)
@@ -227,6 +252,7 @@ ENDF(C(ffi_call_unix64))
227
252
 
228
253
  C(ffi_closure_unix64_sse):
229
254
  L(UW5):
255
+ _CET_ENDBR
230
256
  subq $ffi_closure_FS, %rsp
231
257
  L(UW6):
232
258
  /* cfi_adjust_cfa_offset(ffi_closure_FS) */
@@ -250,6 +276,7 @@ ENDF(C(ffi_closure_unix64_sse))
250
276
 
251
277
  C(ffi_closure_unix64):
252
278
  L(UW8):
279
+ _CET_ENDBR
253
280
  subq $ffi_closure_FS, %rsp
254
281
  L(UW9):
255
282
  /* cfi_adjust_cfa_offset(ffi_closure_FS) */
@@ -286,6 +313,11 @@ L(UW10):
286
313
  movzbl %al, %r10d
287
314
  leaq L(load_table)(%rip), %r11
288
315
  ja L(la)
316
+ #ifdef __CET__
317
+ /* NB: Originally, each slot is 8 byte. 4 bytes of ENDBR64 +
318
+ 4 bytes NOP padding double slot size to 16 bytes. */
319
+ addl %r10d, %r10d
320
+ #endif
289
321
  leaq (%r11, %r10, 8), %r10
290
322
  leaq ffi_closure_RED_RVALUE(%rsp), %rsi
291
323
  jmp *%r10
@@ -293,51 +325,67 @@ L(UW10):
293
325
  .balign 8
294
326
  L(load_table):
295
327
  E(L(load_table), UNIX64_RET_VOID)
328
+ _CET_ENDBR
296
329
  ret
297
330
  E(L(load_table), UNIX64_RET_UINT8)
331
+ _CET_ENDBR
298
332
  movzbl (%rsi), %eax
299
333
  ret
300
334
  E(L(load_table), UNIX64_RET_UINT16)
335
+ _CET_ENDBR
301
336
  movzwl (%rsi), %eax
302
337
  ret
303
338
  E(L(load_table), UNIX64_RET_UINT32)
339
+ _CET_ENDBR
304
340
  movl (%rsi), %eax
305
341
  ret
306
342
  E(L(load_table), UNIX64_RET_SINT8)
343
+ _CET_ENDBR
307
344
  movsbl (%rsi), %eax
308
345
  ret
309
346
  E(L(load_table), UNIX64_RET_SINT16)
347
+ _CET_ENDBR
310
348
  movswl (%rsi), %eax
311
349
  ret
312
350
  E(L(load_table), UNIX64_RET_SINT32)
351
+ _CET_ENDBR
313
352
  movl (%rsi), %eax
314
353
  ret
315
354
  E(L(load_table), UNIX64_RET_INT64)
355
+ _CET_ENDBR
316
356
  movq (%rsi), %rax
317
357
  ret
318
358
  E(L(load_table), UNIX64_RET_XMM32)
359
+ _CET_ENDBR
319
360
  movd (%rsi), %xmm0
320
361
  ret
321
362
  E(L(load_table), UNIX64_RET_XMM64)
363
+ _CET_ENDBR
322
364
  movq (%rsi), %xmm0
323
365
  ret
324
366
  E(L(load_table), UNIX64_RET_X87)
367
+ _CET_ENDBR
325
368
  fldt (%rsi)
326
369
  ret
327
370
  E(L(load_table), UNIX64_RET_X87_2)
371
+ _CET_ENDBR
328
372
  fldt 16(%rsi)
329
373
  fldt (%rsi)
330
374
  ret
331
375
  E(L(load_table), UNIX64_RET_ST_XMM0_RAX)
376
+ _CET_ENDBR
332
377
  movq 8(%rsi), %rax
333
378
  jmp L(l3)
334
379
  E(L(load_table), UNIX64_RET_ST_RAX_XMM0)
380
+ _CET_ENDBR
335
381
  movq 8(%rsi), %xmm0
336
382
  jmp L(l2)
337
383
  E(L(load_table), UNIX64_RET_ST_XMM0_XMM1)
384
+ _CET_ENDBR
338
385
  movq 8(%rsi), %xmm1
339
386
  jmp L(l3)
340
387
  E(L(load_table), UNIX64_RET_ST_RAX_RDX)
388
+ _CET_ENDBR
341
389
  movq 8(%rsi), %rdx
342
390
  L(l2):
343
391
  movq (%rsi), %rax
@@ -358,6 +406,7 @@ ENDF(C(ffi_closure_unix64))
358
406
 
359
407
  C(ffi_go_closure_unix64_sse):
360
408
  L(UW12):
409
+ _CET_ENDBR
361
410
  subq $ffi_closure_FS, %rsp
362
411
  L(UW13):
363
412
  /* cfi_adjust_cfa_offset(ffi_closure_FS) */
@@ -381,6 +430,7 @@ ENDF(C(ffi_go_closure_unix64_sse))
381
430
 
382
431
  C(ffi_go_closure_unix64):
383
432
  L(UW15):
433
+ _CET_ENDBR
384
434
  subq $ffi_closure_FS, %rsp
385
435
  L(UW16):
386
436
  /* cfi_adjust_cfa_offset(ffi_closure_FS) */
@@ -424,7 +474,12 @@ EHFrame0:
424
474
  #endif
425
475
 
426
476
  /* Simplify advancing between labels. Assume DW_CFA_advance_loc1 fits. */
427
- #define ADV(N, P) .byte 2, L(N)-L(P)
477
+ #ifdef __CET__
478
+ /* Use DW_CFA_advance_loc2 when IBT is enabled. */
479
+ # define ADV(N, P) .byte 3; .2byte L(N)-L(P)
480
+ #else
481
+ # define ADV(N, P) .byte 2, L(N)-L(P)
482
+ #endif
428
483
 
429
484
  .balign 8
430
485
  L(CIE):
@@ -517,6 +572,47 @@ L(SFDE5):
517
572
  L(EFDE5):
518
573
  #ifdef __APPLE__
519
574
  .subsections_via_symbols
575
+ .section __LD,__compact_unwind,regular,debug
576
+
577
+ /* compact unwind for ffi_call_unix64 */
578
+ .quad C(ffi_call_unix64)
579
+ .set L1,L(UW4)-L(UW0)
580
+ .long L1
581
+ .long 0x04000000 /* use dwarf unwind info */
582
+ .quad 0
583
+ .quad 0
584
+
585
+ /* compact unwind for ffi_closure_unix64_sse */
586
+ .quad C(ffi_closure_unix64_sse)
587
+ .set L2,L(UW7)-L(UW5)
588
+ .long L2
589
+ .long 0x04000000 /* use dwarf unwind info */
590
+ .quad 0
591
+ .quad 0
592
+
593
+ /* compact unwind for ffi_closure_unix64 */
594
+ .quad C(ffi_closure_unix64)
595
+ .set L3,L(UW11)-L(UW8)
596
+ .long L3
597
+ .long 0x04000000 /* use dwarf unwind info */
598
+ .quad 0
599
+ .quad 0
600
+
601
+ /* compact unwind for ffi_go_closure_unix64_sse */
602
+ .quad C(ffi_go_closure_unix64_sse)
603
+ .set L4,L(UW14)-L(UW12)
604
+ .long L4
605
+ .long 0x04000000 /* use dwarf unwind info */
606
+ .quad 0
607
+ .quad 0
608
+
609
+ /* compact unwind for ffi_go_closure_unix64 */
610
+ .quad C(ffi_go_closure_unix64)
611
+ .set L5,L(UW17)-L(UW15)
612
+ .long L5
613
+ .long 0x04000000 /* use dwarf unwind info */
614
+ .quad 0
615
+ .quad 0
520
616
  #endif
521
617
 
522
618
  #endif /* __x86_64__ */
@@ -1,3 +1,4 @@
1
+ #ifdef __x86_64__
1
2
  #define LIBFFI_ASM
2
3
  #include <fficonfig.h>
3
4
  #include <ffi.h>
@@ -29,7 +30,7 @@
29
30
  #if defined(__clang__) || defined(__APPLE__) || (defined (__sun__) && defined(__svr4__))
30
31
  # define E(BASE, X) .balign 8
31
32
  #else
32
- # define E(BASE, X) .balign 8; .org BASE + X * 8
33
+ # define E(BASE, X) .balign 8; .org BASE + (X) * 8
33
34
  #endif
34
35
 
35
36
  .text
@@ -42,10 +43,12 @@
42
43
 
43
44
  .align 8
44
45
  .globl C(ffi_call_win64)
46
+ FFI_HIDDEN(C(ffi_call_win64))
45
47
 
46
48
  SEH(.seh_proc ffi_call_win64)
47
49
  C(ffi_call_win64):
48
50
  cfi_startproc
51
+ _CET_ENDBR
49
52
  /* Set up the local stack frame and install it in rbp/rsp. */
50
53
  movq (%rsp), %rax
51
54
  movq %rbp, (arg1)
@@ -78,7 +81,7 @@ C(ffi_call_win64):
78
81
  cmpl $FFI_TYPE_SMALL_STRUCT_4B, %ecx
79
82
  leaq (%r10, %rcx, 8), %r10
80
83
  ja 99f
81
- jmp *%r10
84
+ _CET_NOTRACK jmp *%r10
82
85
 
83
86
  /* Below, we're space constrained most of the time. Thus we eschew the
84
87
  modern "mov, pop, ret" sequence (5 bytes) for "leave, ret" (2 bytes). */
@@ -105,7 +108,8 @@ E(0b, FFI_TYPE_FLOAT)
105
108
  E(0b, FFI_TYPE_DOUBLE)
106
109
  movsd %xmm0, (%r8)
107
110
  epilogue
108
- E(0b, FFI_TYPE_LONGDOUBLE)
111
+ // FFI_TYPE_LONGDOUBLE may be FFI_TYPE_DOUBLE but we need a different value here.
112
+ E(0b, FFI_TYPE_DOUBLE + 1)
109
113
  call PLT(C(abort))
110
114
  E(0b, FFI_TYPE_UINT8)
111
115
  movzbl %al, %eax
@@ -169,10 +173,12 @@ E(0b, FFI_TYPE_SMALL_STRUCT_4B)
169
173
 
170
174
  .align 8
171
175
  .globl C(ffi_go_closure_win64)
176
+ FFI_HIDDEN(C(ffi_go_closure_win64))
172
177
 
173
178
  SEH(.seh_proc ffi_go_closure_win64)
174
179
  C(ffi_go_closure_win64):
175
180
  cfi_startproc
181
+ _CET_ENDBR
176
182
  /* Save all integer arguments into the incoming reg stack space. */
177
183
  movq %rcx, 8(%rsp)
178
184
  movq %rdx, 16(%rsp)
@@ -188,10 +194,12 @@ C(ffi_go_closure_win64):
188
194
 
189
195
  .align 8
190
196
  .globl C(ffi_closure_win64)
197
+ FFI_HIDDEN(C(ffi_closure_win64))
191
198
 
192
199
  SEH(.seh_proc ffi_closure_win64)
193
200
  C(ffi_closure_win64):
194
201
  cfi_startproc
202
+ _CET_ENDBR
195
203
  /* Save all integer arguments into the incoming reg stack space. */
196
204
  movq %rcx, 8(%rsp)
197
205
  movq %rdx, 16(%rsp)
@@ -226,6 +234,7 @@ C(ffi_closure_win64):
226
234
 
227
235
  cfi_endproc
228
236
  SEH(.seh_endproc)
237
+ #endif /* __x86_64__ */
229
238
 
230
239
  #if defined __ELF__ && defined __linux__
231
240
  .section .note.GNU-stack,"",@progbits
@@ -29,7 +29,7 @@
29
29
  #if defined(__clang__) || defined(__APPLE__) || (defined (__sun__) && defined(__svr4__))
30
30
  # define E(BASE, X) ALIGN 8
31
31
  #else
32
- # define E(BASE, X) ALIGN 8; ORG BASE + X * 8
32
+ # define E(BASE, X) ALIGN 8; ORG BASE + (X) * 8
33
33
  #endif
34
34
 
35
35
  .CODE
@@ -107,7 +107,8 @@ E(0b, FFI_TYPE_FLOAT)
107
107
  E(0b, FFI_TYPE_DOUBLE)
108
108
  movsd qword ptr[r8], xmm0; movsd %xmm0, (%r8)
109
109
  epilogue
110
- E(0b, FFI_TYPE_LONGDOUBLE)
110
+ // FFI_TYPE_LONGDOUBLE may be FFI_TYPE_DOUBLE but we need a different value here.
111
+ E(0b, FFI_TYPE_DOUBLE + 1)
111
112
  call PLT(C(abort))
112
113
  E(0b, FFI_TYPE_UINT8)
113
114
  movzx eax, al ;movzbl %al, %eax
@@ -6,112 +6,117 @@ EXTRA_DEJAGNU_SITE_CONFIG=../local.exp
6
6
 
7
7
  CLEANFILES = *.exe core* *.log *.sum
8
8
 
9
- EXTRA_DIST = lib/target-libpath.exp lib/libffi.exp lib/wrapper.exp \
10
- libffi.call/strlen4.c libffi.call/cls_multi_sshort.c \
11
- libffi.call/cls_align_longdouble_split2.c libffi.call/cls_1_1byte.c \
12
- libffi.call/struct10.c libffi.call/cls_uint_va.c \
13
- libffi.call/many_mixed.c libffi.call/float.c libffi.call/struct5.c \
14
- libffi.call/return_fl3.c libffi.call/cls_3_1byte.c \
15
- libffi.call/return_fl1.c libffi.call/cls_many_mixed_args.c \
16
- libffi.call/cls_20byte1.c libffi.call/cls_pointer_stack.c \
17
- libffi.call/cls_align_float.c libffi.call/call.exp \
18
- libffi.call/pyobjc-tc.c libffi.call/float_va.c \
19
- libffi.call/cls_5_1_byte.c libffi.call/cls_9byte1.c \
20
- libffi.call/cls_align_uint32.c libffi.call/stret_medium.c \
21
- libffi.call/cls_3byte1.c libffi.call/cls_align_uint64.c \
22
- libffi.call/cls_longdouble_va.c libffi.call/cls_align_pointer.c \
23
- libffi.call/cls_19byte.c libffi.call/cls_ushort.c \
24
- libffi.call/cls_align_sint32.c libffi.call/struct8.c \
25
- libffi.call/pr1172638.c libffi.call/cls_ulonglong.c \
26
- libffi.call/cls_struct_va1.c libffi.call/cls_9byte2.c \
27
- libffi.call/closure_fn5.c libffi.call/cls_5byte.c \
28
- libffi.call/cls_3float.c libffi.call/return_sc.c \
29
- libffi.call/cls_schar.c libffi.call/closure_fn4.c \
30
- libffi.call/cls_uchar_va.c libffi.call/closure_fn0.c \
31
- libffi.call/huge_struct.c libffi.call/va_struct1.c \
32
- libffi.call/cls_ushort_va.c libffi.call/struct9.c libffi.call/va_1.c \
33
- libffi.call/cls_64byte.c libffi.call/va_struct2.c \
34
- libffi.call/cls_longdouble.c libffi.call/return_fl2.c \
35
- libffi.call/cls_ulong_va.c libffi.call/cls_6_1_byte.c \
36
- libffi.call/cls_align_uint16.c libffi.call/closure_fn2.c \
37
- libffi.call/align_mixed.c libffi.call/unwindtest_ffi_call.cc \
38
- libffi.call/cls_multi_ushortchar.c libffi.call/cls_8byte.c \
39
- libffi.call/ffitest.h libffi.call/nested_struct8.c \
40
- libffi.call/cls_pointer.c libffi.call/nested_struct2.c \
41
- libffi.call/nested_struct.c libffi.call/struct4.c \
42
- libffi.call/cls_multi_schar.c libffi.call/cls_align_longdouble_split.c \
43
- libffi.call/cls_uchar.c libffi.call/return_ldl.c \
44
- libffi.call/nested_struct9.c libffi.call/cls_float.c \
45
- libffi.call/stret_medium2.c libffi.call/closure_loc_fn0.c \
46
- libffi.call/float3.c libffi.call/cls_6byte.c libffi.call/return_sl.c \
47
- libffi.call/closure_simple.c libffi.call/return_dbl1.c \
48
- libffi.call/cls_align_double.c libffi.call/cls_multi_uchar.c \
49
- libffi.call/err_bad_typedef.c libffi.call/cls_4_1byte.c \
50
- libffi.call/closure_fn3.c libffi.call/return_ll1.c \
51
- libffi.call/return_dbl2.c libffi.call/cls_align_sint64.c \
52
- libffi.call/nested_struct1.c libffi.call/negint.c \
53
- libffi.call/nested_struct3.c libffi.call/unwindtest.cc \
54
- libffi.call/struct2.c libffi.call/struct3.c libffi.call/return_fl.c \
55
- libffi.call/nested_struct5.c libffi.call/cls_multi_ushort.c \
56
- libffi.call/nested_struct11.c libffi.call/cls_multi_sshortchar.c \
57
- libffi.call/cls_align_longdouble.c libffi.call/cls_dbls_struct.c \
58
- libffi.call/cls_many_mixed_float_double.c libffi.call/stret_large.c \
59
- libffi.call/stret_large2.c libffi.call/cls_align_sint16.c \
60
- libffi.call/cls_2byte.c libffi.call/offsets.c libffi.call/struct7.c \
61
- libffi.call/nested_struct4.c libffi.call/problem1.c \
62
- libffi.call/va_struct3.c libffi.call/testclosure.c \
63
- libffi.call/float1.c libffi.call/nested_struct6.c \
64
- libffi.call/cls_4byte.c libffi.call/cls_24byte.c \
65
- libffi.call/uninitialized.c libffi.call/many2.c \
66
- libffi.call/nested_struct10.c libffi.call/struct6.c \
67
- libffi.call/strlen2.c libffi.call/float2.c libffi.call/cls_uint.c \
68
- libffi.call/cls_12byte.c libffi.call/return_ul.c \
69
- libffi.call/cls_sint.c libffi.call/cls_7_1_byte.c \
70
- libffi.call/struct1.c libffi.call/cls_sshort.c \
71
- libffi.call/cls_16byte.c libffi.call/strlen3.c \
72
- libffi.call/nested_struct7.c libffi.call/cls_double_va.c \
73
- libffi.call/return_dbl.c libffi.call/cls_3byte2.c libffi.call/float4.c \
74
- libffi.call/cls_double.c libffi.call/many.c libffi.call/cls_7byte.c \
75
- libffi.call/strlen.c libffi.call/closure_fn6.c libffi.call/return_uc.c \
76
- libffi.call/closure_fn1.c libffi.call/cls_20byte.c \
77
- libffi.call/cls_18byte.c libffi.call/err_bad_abi.c \
78
- libffi.call/many_double.c libffi.call/return_ll.c \
79
- libffi.call/promotion.c libffi.complex/complex_defs_longdouble.inc \
80
- libffi.complex/cls_align_complex_float.c \
81
- libffi.complex/cls_complex_va_float.c \
82
- libffi.complex/cls_complex_struct_float.c \
83
- libffi.complex/return_complex2_longdouble.c \
84
- libffi.complex/cls_complex_float.c \
85
- libffi.complex/return_complex_longdouble.c \
86
- libffi.complex/return_complex2_float.c libffi.complex/cls_complex.inc \
87
- libffi.complex/cls_complex_va_longdouble.c \
88
- libffi.complex/return_complex_double.c \
89
- libffi.complex/return_complex.inc libffi.complex/many_complex.inc \
90
- libffi.complex/complex_float.c libffi.complex/cls_align_complex.inc \
91
- libffi.complex/return_complex2_double.c \
92
- libffi.complex/many_complex_float.c libffi.complex/ffitest.h \
93
- libffi.complex/return_complex1_double.c \
94
- libffi.complex/cls_complex_struct_longdouble.c \
95
- libffi.complex/complex_defs_double.inc \
96
- libffi.complex/cls_complex_va_double.c \
97
- libffi.complex/many_complex_double.c \
98
- libffi.complex/return_complex2.inc \
99
- libffi.complex/return_complex1_float.c \
100
- libffi.complex/complex_longdouble.c \
101
- libffi.complex/complex_defs_float.inc \
102
- libffi.complex/cls_complex_double.c \
103
- libffi.complex/cls_align_complex_double.c \
104
- libffi.complex/cls_align_complex_longdouble.c \
105
- libffi.complex/complex_double.c libffi.complex/cls_complex_va.inc \
106
- libffi.complex/many_complex_longdouble.c libffi.complex/complex.inc \
107
- libffi.complex/return_complex1_longdouble.c \
108
- libffi.complex/complex_int.c libffi.complex/cls_complex_longdouble.c \
109
- libffi.complex/cls_complex_struct_double.c \
110
- libffi.complex/return_complex1.inc libffi.complex/complex.exp \
111
- libffi.complex/cls_complex_struct.inc \
112
- libffi.complex/return_complex_float.c libffi.go/closure1.c \
113
- libffi.go/aa-direct.c libffi.go/ffitest.h libffi.go/go.exp \
114
- libffi.go/static-chain.h libffi.bhaible/bhaible.exp \
115
- libffi.bhaible/test-call.c libffi.bhaible/alignof.h \
116
- libffi.bhaible/testcases.c libffi.bhaible/test-callback.c \
117
- libffi.bhaible/Makefile libffi.bhaible/README config/default.exp
9
+ EXTRA_DIST = lib/target-libpath.exp lib/libffi.exp lib/wrapper.exp \
10
+ libffi.call/strlen4.c libffi.call/struct10.c libffi.call/many_mixed.c \
11
+ libffi.call/float.c libffi.call/struct5.c libffi.call/return_fl3.c \
12
+ libffi.call/return_fl1.c libffi.call/call.exp libffi.call/pyobjc-tc.c \
13
+ libffi.call/float_va.c libffi.call/struct8.c libffi.call/pr1172638.c \
14
+ libffi.call/return_sc.c libffi.call/va_struct1.c \
15
+ libffi.call/align_stdcall.c libffi.call/struct9.c libffi.call/va_1.c \
16
+ libffi.call/va_struct2.c libffi.call/return_fl2.c \
17
+ libffi.call/align_mixed.c libffi.call/ffitest.h libffi.call/struct4.c \
18
+ libffi.call/return_ldl.c libffi.call/float3.c libffi.call/return_sl.c \
19
+ libffi.call/return_dbl1.c libffi.call/err_bad_typedef.c \
20
+ libffi.call/return_ll1.c libffi.call/return_dbl2.c \
21
+ libffi.call/negint.c libffi.closures/nested_struct3.c \
22
+ libffi.call/struct2.c libffi.call/struct3.c libffi.call/return_fl.c \
23
+ libffi.call/offsets.c libffi.call/struct7.c libffi.call/va_struct3.c \
24
+ libffi.call/float1.c libffi.call/uninitialized.c libffi.call/many2.c \
25
+ libffi.call/struct6.c libffi.call/strlen2.c libffi.call/float2.c \
26
+ libffi.call/return_ul.c libffi.call/struct1.c libffi.call/strlen3.c \
27
+ libffi.call/return_dbl.c libffi.call/float4.c libffi.call/many.c \
28
+ libffi.call/strlen.c libffi.call/return_uc.c libffi.call/many_double.c \
29
+ libffi.call/return_ll.c libffi.call/promotion.c \
30
+ libffi.complex/complex_defs_longdouble.inc \
31
+ libffi.complex/cls_align_complex_float.c \
32
+ libffi.complex/cls_complex_va_float.c \
33
+ libffi.complex/cls_complex_struct_float.c \
34
+ libffi.complex/return_complex2_longdouble.c \
35
+ libffi.complex/cls_complex_float.c \
36
+ libffi.complex/return_complex_longdouble.c \
37
+ libffi.complex/return_complex2_float.c libffi.complex/cls_complex.inc \
38
+ libffi.complex/cls_complex_va_longdouble.c \
39
+ libffi.complex/return_complex_double.c \
40
+ libffi.complex/return_complex.inc libffi.complex/many_complex.inc \
41
+ libffi.complex/complex_float.c libffi.complex/cls_align_complex.inc \
42
+ libffi.complex/return_complex2_double.c \
43
+ libffi.complex/many_complex_float.c libffi.complex/ffitest.h \
44
+ libffi.complex/return_complex1_double.c \
45
+ libffi.complex/cls_complex_struct_longdouble.c \
46
+ libffi.complex/complex_defs_double.inc \
47
+ libffi.complex/cls_complex_va_double.c \
48
+ libffi.complex/many_complex_double.c \
49
+ libffi.complex/return_complex2.inc \
50
+ libffi.complex/return_complex1_float.c \
51
+ libffi.complex/complex_longdouble.c \
52
+ libffi.complex/complex_defs_float.inc \
53
+ libffi.complex/cls_complex_double.c \
54
+ libffi.complex/cls_align_complex_double.c \
55
+ libffi.complex/cls_align_complex_longdouble.c \
56
+ libffi.complex/complex_double.c libffi.complex/cls_complex_va.inc \
57
+ libffi.complex/many_complex_longdouble.c libffi.complex/complex.inc \
58
+ libffi.complex/return_complex1_longdouble.c \
59
+ libffi.complex/complex_int.c libffi.complex/cls_complex_longdouble.c \
60
+ libffi.complex/cls_complex_struct_double.c \
61
+ libffi.complex/return_complex1.inc libffi.complex/complex.exp \
62
+ libffi.complex/cls_complex_struct.inc \
63
+ libffi.complex/return_complex_float.c libffi.go/closure1.c \
64
+ libffi.go/aa-direct.c libffi.go/ffitest.h libffi.go/go.exp \
65
+ libffi.go/static-chain.h libffi.bhaible/bhaible.exp \
66
+ libffi.bhaible/test-call.c libffi.bhaible/alignof.h \
67
+ libffi.bhaible/testcases.c libffi.bhaible/test-callback.c \
68
+ libffi.bhaible/Makefile libffi.bhaible/README config/default.exp \
69
+ libffi.closures/cls_multi_sshort.c \
70
+ libffi.closures/cls_align_longdouble_split2.c \
71
+ libffi.closures/cls_1_1byte.c libffi.closures/cls_uint_va.c \
72
+ libffi.closures/cls_3_1byte.c libffi.closures/cls_many_mixed_args.c \
73
+ libffi.closures/cls_20byte1.c libffi.closures/cls_pointer_stack.c \
74
+ libffi.closures/cls_align_float.c libffi.closures/cls_5_1_byte.c \
75
+ libffi.closures/cls_9byte1.c libffi.closures/cls_align_uint32.c \
76
+ libffi.closures/stret_medium.c libffi.closures/cls_3byte1.c \
77
+ libffi.closures/cls_align_uint64.c libffi.closures/cls_longdouble_va.c \
78
+ libffi.closures/cls_align_pointer.c libffi.closures/cls_19byte.c \
79
+ libffi.closures/cls_ushort.c libffi.closures/cls_align_sint32.c \
80
+ libffi.closures/cls_ulonglong.c libffi.closures/cls_struct_va1.c \
81
+ libffi.closures/cls_9byte2.c libffi.closures/closure_fn5.c \
82
+ libffi.closures/cls_5byte.c libffi.closures/cls_3float.c \
83
+ libffi.closures/closure.exp libffi.closures/cls_schar.c \
84
+ libffi.closures/closure_fn4.c libffi.closures/cls_uchar_va.c \
85
+ libffi.closures/closure_fn0.c libffi.closures/huge_struct.c \
86
+ libffi.closures/cls_ushort_va.c \
87
+ libffi.closures/cls_64byte.c libffi.closures/cls_longdouble.c \
88
+ libffi.closures/cls_ulong_va.c libffi.closures/cls_6_1_byte.c \
89
+ libffi.closures/cls_align_uint16.c libffi.closures/closure_fn2.c \
90
+ libffi.closures/unwindtest_ffi_call.cc \
91
+ libffi.closures/cls_multi_ushortchar.c libffi.closures/cls_8byte.c \
92
+ libffi.closures/ffitest.h libffi.closures/nested_struct8.c \
93
+ libffi.closures/cls_pointer.c libffi.closures/nested_struct2.c \
94
+ libffi.closures/nested_struct.c libffi.closures/cls_multi_schar.c \
95
+ libffi.closures/cls_align_longdouble_split.c \
96
+ libffi.closures/cls_uchar.c libffi.closures/nested_struct9.c \
97
+ libffi.closures/cls_float.c libffi.closures/stret_medium2.c \
98
+ libffi.closures/closure_loc_fn0.c libffi.closures/cls_6byte.c \
99
+ libffi.closures/closure_simple.c libffi.closures/cls_align_double.c \
100
+ libffi.closures/cls_multi_uchar.c libffi.closures/cls_4_1byte.c \
101
+ libffi.closures/closure_fn3.c libffi.closures/cls_align_sint64.c \
102
+ libffi.closures/nested_struct1.c libffi.closures/unwindtest.cc \
103
+ libffi.closures/nested_struct5.c libffi.closures/cls_multi_ushort.c \
104
+ libffi.closures/nested_struct11.c \
105
+ libffi.closures/cls_multi_sshortchar.c \
106
+ libffi.closures/cls_align_longdouble.c \
107
+ libffi.closures/cls_dbls_struct.c \
108
+ libffi.closures/cls_many_mixed_float_double.c \
109
+ libffi.closures/stret_large.c libffi.closures/stret_large2.c \
110
+ libffi.closures/cls_align_sint16.c libffi.closures/cls_2byte.c \
111
+ libffi.closures/nested_struct4.c libffi.closures/problem1.c \
112
+ libffi.closures/testclosure.c libffi.closures/nested_struct6.c \
113
+ libffi.closures/cls_4byte.c libffi.closures/cls_24byte.c \
114
+ libffi.closures/nested_struct10.c libffi.closures/cls_uint.c \
115
+ libffi.closures/cls_12byte.c libffi.closures/cls_sint.c \
116
+ libffi.closures/cls_7_1_byte.c libffi.closures/cls_sshort.c \
117
+ libffi.closures/cls_16byte.c libffi.closures/nested_struct7.c \
118
+ libffi.closures/cls_double_va.c libffi.closures/cls_3byte2.c \
119
+ libffi.closures/cls_double.c libffi.closures/cls_7byte.c \
120
+ libffi.closures/closure_fn6.c libffi.closures/closure_fn1.c \
121
+ libffi.closures/cls_20byte.c libffi.closures/cls_18byte.c \
122
+ libffi.closures/err_bad_abi.c