Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| a4b785ea | 2014-10-17 02:07:32 | arm: Rewrite ffi_closure Move the push of the argument registers into ffi_closure_SYSV, reducing the size of the trampoline. | ||
| e7f15f60 | 2014-10-17 01:27:16 | arm: Rewrite ffi_call Use the trick to allocate the stack frame for ffi_call_SYSV within ffi_call itself. | ||
| 0d39b4bb | 2014-10-17 01:02:52 | arm: Deref ffi_put_arg arguments | ||
| 57b24fb3 | 2014-10-17 00:53:21 | arm: Deref ffi_align argument | ||
| a74a3aad | 2014-10-17 01:21:22 | arm: Rewrite vfp_type_p Do not modify the ffi_type. Rearrange the tests so that we quickly eliminate structures that cannot match. Return an encoded value of element count and base type. | ||
| c129bea8 | 2014-10-15 17:28:53 | arm: Reindent arm/ffi.c | ||
| 9761b7bb | 2014-10-17 21:26:52 | alpha: Add support for Go closures | ||
| f41bec3b | 2014-10-17 20:46:48 | alpha: Add support for complex types | ||
| 5f917371 | 2014-10-17 13:47:26 | alpha: Clean up conversion of float values Don't use "real" conversion to double, lest we raise exceptions when passing signalling nans. | ||
| 32a26b75 | 2014-10-17 12:33:53 | alpha: Reorganize cif flags Unties the backend from changes to FFI_TYPE_* constants, and allows compilation to succeed after the addition of FFI_TYPE_COMPLEX. Delete the hand-written unwind info. | ||
| c6352b66 | 2014-10-23 00:26:14 | aarch64: Add support for Go closures | ||
| 0e41c73b | 2014-10-22 23:48:12 | aarch64: Move x8 out of call_context Reduces stack size. It was only used by the closure, and there are available argument registers. | ||
| a992f878 | 2014-10-22 22:58:09 | aarch64: Add support for complex types | ||
| 12cf89ee | 2014-10-22 21:53:30 | aarch64: Move return value handling into ffi_closure_SYSV As with the change to ffi_call_SYSV, this avoids copying data into a temporary buffer. | ||
| 4fe1aea1 | 2014-10-22 17:06:19 | aarch64: Move return value handling into ffi_call_SYSV This lets us pass return data directly to the caller of ffi_call in most cases, rather than storing it into temporary storage first. | ||
| 325471ea | 2014-10-22 13:58:59 | aarch64: Merge prep_args with ffi_call Use the trick to allocate the stack frame for ffi_call_SYSV within ffi_call itself. | ||
| 8c8161cb | 2014-10-22 12:52:07 | aarch64: Tidy up abi manipulation Avoid false abstraction, like get_x_addr. Avoid recomputing data about the type being manipulated. Use NEON insns for HFA manipulation. Note that some of the inline assembly will go away in a subsequent patch. | ||
| b55e0366 | 2014-10-22 12:33:59 | aarch64: Treat void return as not passed in registers This lets us do less post-processing when there's no return value. | ||
| 2e32f9bf | 2014-10-21 22:49:05 | aarch64: Use correct return registers There are fewer return registers than argument registers. | ||
| 95a04af1 | 2014-10-21 22:41:07 | aarch64: Reduce the size of register_context We don't need to store 32 general and vector registers. Only 8 of each are used for parameter passing. | ||
| 77c4cddc | 2014-10-21 13:30:40 | aarch64: Simplify AARCH64_STACK_ALIGN The iOS abi doesn't require padding between arguments, but that's not what AARCH64_STACK_ALIGN meant. The hardware will in fact trap if the SP register is not 16 byte aligned. | ||
| b5f147d8 | 2014-10-21 13:27:57 | aarch64: Always distinguish LONGDOUBLE Avoid if-deffery by forcing FFI_TYPE_LONGDOUBLE different from FFI_TYPE_DOUBLE. This will simply be unused on hosts that define them identically. | ||
| 38b54b9c | 2014-10-21 13:17:39 | aarch64: Improve is_hfa The set of functions get_homogeneous_type, element_count, and is_hfa are all intertwined and recompute data. Return a compound quantity from is_hfa that contains all the data and avoids the recomputation. | ||
| 18b74ce5 | 2014-10-21 13:00:34 | aarch64: Fix non-apple compilation | ||
| 658b2b56 | 2014-10-22 22:36:07 | aarch64: Remove aarch64_flags This field was useless from the start, since the normal flags field is available for backend use. | ||
| 4a3cbcaa | 2014-10-22 22:32:13 | aarch64: Unify scalar fp and hfa handling Since an HFA of a single element is exactly the same as scalar, this tidies things up a bit. | ||
| 2650f47f | 2014-11-06 10:57:04 | x86: Use win32 name mangling for fastcall functions | ||
| f8c64e24 | 2014-11-05 17:04:29 | x86: Add support for Go closures | ||
| 198f469e | 2014-11-05 16:34:41 | x86: Add support for Complex | ||
| b21ec1ce | 2014-11-05 10:15:25 | x86: Rewrite closures Move everything into sysv.S, removing win32.S and freebsd.S. Handle all abis with a single ffi_closure_inner function. Move complexity of the raw THISCALL trampoline into assembly instead of the trampoline itself. Only push the context for the REGISTER abi; let the rest receive it in a register. | ||
| 159d3788 | 2014-10-31 12:07:02 | x86: Convert to gas generated unwind info | ||
| e7b0056d | 2014-10-30 13:57:39 | x86: Force FFI_TYPE_LONGDOUBLE different from FFI_TYPE_DOUBLE There are few abis that set double = long double. Eliminate the conditional compilation and let this code simply be unused there. | ||
| 4b2fad8f | 2014-10-30 12:41:31 | x86: Remove some conditional compilation Removal of ifdefs made possible to due to ffi_abi unification. | ||
| ef762056 | 2014-10-30 12:13:31 | x86: Tidy ffi_abi The x86_64 unix port only handles one ABI; don't define all of the other symbols. The UNIX64 symbol retains the same value. The i386 ports ought to have the same symbols, even if we can't yet unify the values without incrementing the libffi soname. | ||
| 610c90bf | 2014-10-28 11:21:50 | x86_64: Add support for complex types | ||
| 32c56831 | 2014-10-28 11:17:35 | x86_64: Decouple return types from FFI_TYPE constants We can better support structure returns, and as prep for complex types. | ||
| 2e9dc165 | 2014-10-27 13:41:39 | x86_64: Fixups for x32 | ||
| ebd82769 | 2014-10-23 23:57:06 | win64: Remove support from ffi.c | ||
| 99db4d42 | 2014-10-23 14:12:18 | win64: Rewrite It's way too different from the 32-bit ABIs with which it is currently associated. As seen from all of the existing XFAILs. | ||
| 6b62fb4a | 2014-10-17 11:11:58 | x86-64: Support go closures Dumps all of the hand-coded unwind info for gas generated. Move jump table data into .rodata. Adjust ffi_call_unix64 to load the static chain. Split out sse portions of ffi_closure_unix64 to ffi_closure_unix64_sse rather than test cif->flags at runtime. | ||
| b9ac94f3 | 2014-11-01 15:10:34 | x86: Rewrite ffi_call Decouple the assembly from FFI_TYPE_*. Merge prep_args with ffi_call, passing the frame and the stack to the assembly. Note that this patch isn't really standalone, as this breaks closures. | ||
| a0bdc525 | 2014-11-11 09:43:01 | Fix typo | ||
| 0f316ab7 | 2014-09-27 00:19:15 | Add OpenRISC support This patch adds support for the OpenRISC architecture. (http://opencores.org/or1k/Main_Page) This patch has been tested under Linux with QEMU-user emulation support. - 32 Bit - big endian - delayed instructions This is the only available configuration under Linux. The description of the ABI can be found on the official website. Is passes the testsuite except of the unwindtest_ffi_call.cc testcase, which seems to be a problem of gcc and not libffi. Some testcases of the gcc testsuite still fail. Signed-off-by: Sebastian Macke <sebastian@macke.de> | ||
| 6695983d | 2014-09-20 07:44:37 | Add complex type support. Mostly broken right now | ||
| bfcbf329 | 2014-09-20 06:51:45 | 2014-05-11 Bernd Edlinger <bernd.edlinger@hotmail.de> Fix current cygwin-64 build problems. * src/java_raw_api.c: Remove if !defined(FFI_NO_RAW_API). * src/x86/ffi.c: Add if defined(__CYGWIN__). * src/x86/win64.S (ffi_closure_win64, ffi_call_win64): Added handling for FFI_TYPE_UINT64, FFI_TYPE_POINTER and FFI_TYPE_INT. Added SEH information. Fixed formatting. | ||
| 32cb2ce8 | 2014-09-20 06:39:55 | 2014-09-10 Jakub Jelinek <jakub@redhat.com> * src/powerpc/linux64.S: Emit .note.GNU-stack even when POWERPC64 is not defined. * src/powerpc/linux64_closure.S: Likewise. Also test _CALL_ELF == 2. | ||
| aaf3101b | 2014-09-20 06:37:04 | Fix -Werror=declaration-after-statement problem | ||
| 6e8a4460 | 2014-09-20 06:21:19 | 2014-07-22 Dominik Vogt <vogt@linux.vnet.ibm.com> * src/types.c (FFI_TYPEDEF, FFI_NONCONST_TYPEDEF): Merge the macros by adding another argument that controls whether the result is const or not (FFI_LDBL_CONST): Temporary macro to reduce ifdef confusion * src/prep_cif.c (ffi_prep_cif_core): Replace list of systems with new macro FFI_TARGET_SPECIFIC_STACK_SPACE_ALLOCATION * src/pa/ffitarget.h (FFI_TARGET_SPECIFIC_STACK_SPACE_ALLOCATION): Define. * src/s390/ffitarget.h (FFI_TARGET_SPECIFIC_STACK_SPACE_ALLOCATION): Define. * src/x86/ffitarget.h (FFI_TARGET_SPECIFIC_STACK_SPACE_ALLOCATION): Define. 2014-07-22 Dominik Vogt <vogt@linux.vnet.ibm.com> * doc/libffi.texi (Primitive Types): Document ffi_type_complex_float, ffi_type_complex_double and ffi_type_complex_longdouble (Complex Types): New subsection. (Complex Type Example): Ditto. * testsuite/libffi.call/cls_align_complex_double.c: New FFI_TYPE_COMPLEX test. * testsuite/libffi.call/cls_align_complex_float.c: Ditto. * testsuite/libffi.call/cls_align_complex_longdouble.c: Ditto. * testsuite/libffi.call/cls_complex_double.c: Ditto. * testsuite/libffi.call/cls_complex_float.c: Ditto. * testsuite/libffi.call/cls_complex_longdouble.c: Ditto. * testsuite/libffi.call/cls_complex_struct_double.c: Ditto. * testsuite/libffi.call/cls_complex_struct_float.c: Ditto. * testsuite/libffi.call/cls_complex_struct_longdouble.c: Ditto. * testsuite/libffi.call/cls_complex_va_double.c: Ditto. * testsuite/libffi.call/cls_complex_va_float.c: Ditto. * testsuite/libffi.call/cls_complex_va_longdouble.c: Ditto. * testsuite/libffi.call/complex_double.c: Ditto. * testsuite/libffi.call/complex_defs_double.c: Ditto. * testsuite/libffi.call/complex_float.c: Ditto. * testsuite/libffi.call/complex_defs_float.c: Ditto. * testsuite/libffi.call/complex_longdouble.c: Ditto. * testsuite/libffi.call/complex_defs_longdouble.c: Ditto. * testsuite/libffi.call/complex_int.c: Ditto. * testsuite/libffi.call/many_complex_double.c: Ditto. * testsuite/libffi.call/many_complex_float.c: Ditto. * testsuite/libffi.call/many_complex_longdouble.c: Ditto. * testsuite/libffi.call/return_complex1_double.c: Ditto. * testsuite/libffi.call/return_complex1_float.c: Ditto. * testsuite/libffi.call/return_complex1_longdouble.c: Ditto. * testsuite/libffi.call/return_complex2_double.c: Ditto. * testsuite/libffi.call/return_complex2_float.c: Ditto. * testsuite/libffi.call/return_complex2_longdouble.c: Ditto. * testsuite/libffi.call/return_complex_double.c: Ditto. * testsuite/libffi.call/return_complex_float.c: Ditto. * testsuite/libffi.call/return_complex_longdouble.c: Ditto. * src/raw_api.c (ffi_raw_to_ptrarray): Handle FFI_TYPE_COMPLEX (ffi_ptrarray_to_raw): Ditto. * src/prep_cif.c (ffi_prep_cif_core): Abort if FFI_TYPE_COMPLEX is not implemented in libffi for the target. * src/java_raw_api.c (ffi_java_raw_size): FFI_TYPE_COMPLEX not supported yet (abort). (ffi_java_raw_to_ptrarray): Ditto. (ffi_java_rvalue_to_raw): Ditto. (ffi_java_raw_to_rvalue): Ditto. * src/debug.c (ffi_type_test): Add debug tests for complex types. * include/ffi.h.in (FFI_TYPE_COMPLEX): Add new FFI_TYPE_COMPLEX. (FFI_TYPE_LAST): Bump. (ffi_type_complex_float): Add new ffi_type_.... (ffi_type_complex_double): Ditto. (ffi_type_complex_longdouble): Ditto. 2014-07-22 Dominik Vogt <vogt@linux.vnet.ibm.com> * src/s390/ffitarget.h (FFI_TARGET_HAS_COMPLEX_TYPE): Define to provide FFI_TYPE_COMPLEX support. * src/s390/ffi.c (ffi_check_struct_type): Implement FFI_TYPE_COMPLEX (ffi_prep_args): Ditto. (ffi_prep_cif_machdep): Ditto. (ffi_closure_helper_SYSV): Ditto. | ||
| 4c5c4088 | 2014-09-18 19:10:54 | Merge pull request #132 from nielsAD/master Pascal and Register calling convention support on x86 | ||
| 862f53de | 2014-09-18 19:06:08 | Merge pull request #130 from frida/fix/darwin-aarch64-float-alignment Fix alignment of FFI_TYPE_FLOAT for Apple's ARM64 ABI | ||
| 5d6340ef | 2014-08-25 17:29:44 | Determine whether register arguments (THISCALL/FASTCALL/REGISTER) are really passed via register to closures. Use stack if not. | ||
| 6e346487 | 2014-08-25 12:23:29 | Fixed THISCALL/FASTCALL closures and added basic support for PASCAL/REGISTER closures. | ||
| 098dca6b | 2014-08-23 00:18:47 | Support for calling functions with PASCAL and REGISTER calling conventions on x86 Windows/Linux. Also changed indentation to be more consistent throughout the (adjusted) files. | ||
| aebf2c30 | 2014-07-25 21:40:50 | Fix alignment of FFI_TYPE_FLOAT for Apple's ARM64 ABI | ||
| 0f4e09d2 | 2014-07-26 00:11:06 | Fix non-variadic CIF initialization for Apple/ARM64 Turns out `aarch64_nfixedargs` wasn't initialized in the non-variadic case, resulting in undefined behavior when allocating arguments. | ||
| 1cee07be | 2014-06-12 06:30:59 | Remove compiler warning | ||
| 978c9540 | 2014-05-31 08:53:10 | Add missing GNU stack markings in win32.S | ||
| c1166d4f | 2014-05-12 19:44:08 | closures: Check for mkostemp(3) | ||
| 8daeed95 | 2014-05-11 22:54:58 | closures: Create temporary file with O_TMPFILE and O_CLOEXEC when available The open_temp_exec_file_dir function can create a temporary file without file system accessible link. If the O_TMPFILE flag is not defined (old Linux kernel or libc) the behavior is unchanged. The open_temp_exec_file_name function now need a new argument "flags" (like O_CLOEXEC) used for temporary file creation. The O_TMPFILE flag allow temporary file creation without race condition. This feature/fix prevent another process to access the (future) executable file from the file system. The O_CLOEXEC flag automatically close the temporary file for any execve. This avoid transmitting (executable) file descriptor to a child process. | ||
| 52b34570 | 2014-05-11 09:55:28 | Check /proc/self/status for PaX status. | ||
| 99909eb6 | 2014-04-22 21:17:52 | src/x86/win32.S: Define ffi_closure_FASTCALL in the MASM section, too | ||
| d3695227 | 2014-04-20 12:03:25 | Support fastcall closures libffi on 32-bit x86 now supports closures for all supported ABIs. Thus, rewrite the last remaining duplicated-by-ABI test (closure_stdcall and closure_thiscall) to use the generic ABI_NUM/ABI_ATTR mechanism. | ||
| 8fa28123 | 2014-04-12 19:32:08 | Merge pull request #116 from frida/fix/darwin-aarch64-variadic Fix handling of variadic calls on Darwin/AArch64 | ||
| 8a58e6b7 | 2014-04-12 19:30:18 | Merge pull request #115 from frida/fix/darwin-aarch64-alignment Fix alignment of AArch64 assembler functions | ||
| 3e2b84d2 | 2014-04-12 01:04:04 | Fix Windows regression Introduced by b5fed601948237037513a9b7f967c8fc6c9ff1f6. | ||
| 419503f4 | 2014-04-06 20:54:13 | Fix handling of variadic calls on Darwin/AArch64 | ||
| a539f7ff | 2014-04-06 20:53:02 | Fix alignment of AArch64 assembler functions | ||
| b5fed601 | 2014-04-05 17:33:42 | Fix ABI on 32-bit non-Windows x86: go back to trampoline size 10 The trampoline size is part of the ABI, so it cannot change. Move the logic from the stdcall and thiscall trampolines to the functions they call, to reduce them both to 10 bytes. This drops the previously added support for raw THISCALL closures on non-Windows. (Non-raw THISCALL closures still work.) | ||
| afee5373 | 2014-03-25 16:12:35 | Merge pull request #106 from joshtriplett/darwin-award [3.1 blocker] Update OS X build system to include win32.S on 32-bit | ||
| 7d247856 | 2014-03-25 16:12:17 | Merge pull request #110 from joshtriplett/w64 Fix 64-bit Windows support | ||
| be50b87a | 2014-03-24 21:44:13 | Always use configure to detect whether global symbols need underscores 64-bit Windows already used this check; make it universal, and use it in place of an ifdef on X86_WIN32, to handle non-Windows platforms that use the underscore, such as Darwin. | ||
| 56be47f8 | 2014-03-24 21:24:53 | Fix a warning on 64-bit Windows When sizeof(size_t) != sizeof(unsigned), adding a size_t to cif->bytes produces a "possible loss of data" warning. However, the size_t in question refers to the size of a single parameter. Use a cast to avoid the warning. | ||
| 48a8eda7 | 2014-03-24 21:21:12 | Avoid referencing undefined ABIs on 64-bit Windows builds 64-bit Windows does not have FFI_STDCALL, FFI_THISCALL, or FFI_FASTCALL. | ||
| f0f4138f | 2014-03-22 10:00:53 | win32.S: Add handling for position-independent code on Darwin Newer versions of Darwin generate the necessary stub functions automatically and just need a call instruction, but accomodating older versions as well requires adding the stub. | ||
| ef5890eb | 2014-03-21 11:01:39 | win32.S: Use shifting for multiplication rather than repeated addition The jump table code added a register to itself twice to multiply by 4; shift the register left by 2 instead. | ||
| 4fca4890 | 2014-03-21 11:00:41 | win32.S: Make the jump tables position-independent Now that non-Windows platforms include win32.S, it needs to support building as position-independent code. This fixes build failures on target platforms that do not allow text relocations. | ||
| 2087dcf7 | 2014-03-21 10:57:06 | win32.S: Make calls to ffi_closure_SYSV_inner position-independent Now that non-Windows platforms include win32.S, it needs to support building as position-independent code. This fixes one source of build failures on target platforms that do not allow text relocations. | ||
| e1911f78 | 2014-03-16 03:25:53 | Add support for stdcall, thiscall, and fastcall on non-Windows x86-32 Linux supports the stdcall calling convention, either via functions explicitly declared with the stdcall attribute, or via code compiled with -mrtd which effectively makes stdcall the default. This introduces FFI_STDCALL, FFI_THISCALL, and FFI_FASTCALL on non-Windows x86-32 platforms, as non-default calling conventions. | ||
| 9531d05f | 2014-03-16 01:50:02 | prep_cif.c: Remove unnecessary ifdef for X86_WIN32 ffi_prep_cif_core had a special case for X86_WIN32, checking for FFI_THISCALL in addition to the FFI_FIRST_ABI-to-FFI_LAST_ABI range before returning FFI_BAD_ABI. However, on X86_WIN32, FFI_THISCALL already falls in that range, making the special case unnecessary. Remove it. | ||
| 11d7aa9d | 2014-02-28 01:06:48 | Merge pull request #46 from makotokato/android-clang Fix build failure when using clang for Android | ||
| 67fbef3b | 2014-02-28 01:06:48 | Merge pull request #46 from makotokato/android-clang Fix build failure when using clang for Android | ||
| 20698abc | 2014-02-28 00:56:27 | Merge pull request #66 from ppizarro/master BlackFin fixes - Fatal error when calling a function defined in a shared library from within the function called by FFI | ||
| 860fe664 | 2014-02-28 00:56:27 | Merge pull request #66 from ppizarro/master BlackFin fixes - Fatal error when calling a function defined in a shared library from within the function called by FFI | ||
| edf29c51 | 2014-02-28 00:50:25 | Merge pull request #75 from joshtriplett/longdouble Fix build error on x86 without distinct long double | ||
| 001aaf4b | 2014-02-28 00:20:17 | When no VFP arguments are present the IP register is used uninitialized. Initialize it to the value of FP. This fixes a number of testsuite failures when configured for armv7l-unknown-linux-gnueabihf | ||
| 49f7729c | 2014-02-28 00:17:16 | aarch64 fix | ||
| 447483d5 | 2014-02-27 15:42:41 | Fix ChangeLog merge | ||
| 3998d260 | 2014-02-17 11:20:33 | Fix build error on x86 without distinct long double src/x86/ffi64.c: In function 'classify_argument': src/x86/ffi64.c:205:5: error: duplicate case value case FFI_TYPE_LONGDOUBLE: ^ src/x86/ffi64.c:202:5: error: previously used here case FFI_TYPE_DOUBLE: ^ | ||
| 51377bda | 2014-02-15 08:06:29 | Merge pull request #72 from heiher/devel MIPS N32: Fix call floating point va function | ||
| 40927bd3 | 2014-01-21 23:18:27 | Fix call floating point va function I'm not sure floating-point arguments in GPR or FPR before calling variable number arguments function. so, load all arguments to GPR and FPR. | ||
| b4df9cf9 | 2014-02-05 14:22:52 | AArch64: Fix void fall-through case when assertions are enabled | ||
| f466aad0 | 2014-01-21 16:38:31 | AArch64: Fix missing semicolons when assertions are enabled | ||
| 0a0f12ce | 2014-01-09 13:50:17 | AArch64: Remove duplicitous element_count call. This inhibits an analyzer warning by Clang. | ||
| 4330fdcd | 2014-01-09 13:53:30 | Darwin/aarch64: Respect iOS ABI re: stack argument alignment | ||
| 0a333d6c | 2014-01-09 14:03:29 | Darwin/aarch64: Fix size_t assumptions | ||
| 2c18e3c7 | 2013-12-30 16:14:02 | Darwin/aarch64: Fix "shadows declaration" warnings | ||
| 1b8a8e20 | 2014-01-09 13:55:21 | Darwin/aarch64: Use Clang cache invalidation builtin | ||
| 6030cdca | 2013-12-30 15:45:51 | Darwin/aarch64: Account for long double being equal to double | ||
| 5658b089 | 2013-12-30 16:33:47 | Darwin/aarch64: Use CNAME, restrict .size like ARM | ||
| 07175780 | 2013-12-30 17:48:22 | Darwin/aarch64: Fix invalid reference in assembly |