platform/upstream/libffi.git
12 years agoUpdate list of supported OpenBSD systems
Anthony Green [Wed, 24 Aug 2011 14:14:23 +0000 (10:14 -0400)]
Update list of supported OpenBSD systems

12 years ago3.0.11-rc1. soname bump.
Anthony Green [Tue, 23 Aug 2011 16:30:29 +0000 (12:30 -0400)]
3.0.11-rc1. soname bump.

12 years agoVersion 3.0.10 v3.0.10
Anthony Green [Tue, 23 Aug 2011 14:31:33 +0000 (10:31 -0400)]
Version 3.0.10

12 years agoFix use of autoconf macros
Anthony Green [Mon, 22 Aug 2011 20:34:24 +0000 (16:34 -0400)]
Fix use of autoconf macros

12 years agoMany new patches
Anthony Green [Mon, 22 Aug 2011 18:50:10 +0000 (14:50 -0400)]
Many new patches

12 years agoRevert remove-debug-code patch temporarily (for ARM Fedora release)
Anthony Green [Mon, 15 Aug 2011 17:25:13 +0000 (13:25 -0400)]
Revert remove-debug-code patch temporarily (for ARM Fedora release)

12 years agoRefresh from GCC
Anthony Green [Fri, 29 Jul 2011 21:32:53 +0000 (17:32 -0400)]
Refresh from GCC

13 years agoFix darwin EH
Anthony Green [Wed, 30 Mar 2011 20:54:42 +0000 (16:54 -0400)]
Fix darwin EH

13 years agoFix permissions
Anthony Green [Mon, 28 Feb 2011 20:36:23 +0000 (15:36 -0500)]
Fix permissions

13 years agoMore AIX fixes. rc9.
Anthony Green [Mon, 28 Feb 2011 20:36:07 +0000 (15:36 -0500)]
More AIX fixes. rc9.

13 years agoMerge branch 'master' of https://github.com/landonf/libffi-ios
Anthony Green [Mon, 28 Feb 2011 20:23:31 +0000 (15:23 -0500)]
Merge branch 'master' of https://github.com/landonf/libffi-ios

13 years agorc8. fix last patch.
Anthony Green [Fri, 25 Feb 2011 21:23:04 +0000 (16:23 -0500)]
rc8. fix last patch.

13 years agorc7. More AIX fixes.
Anthony Green [Fri, 25 Feb 2011 20:52:14 +0000 (15:52 -0500)]
rc7.  More AIX fixes.

13 years agoFix ppc32 bug
Anthony Green [Fri, 25 Feb 2011 20:09:13 +0000 (15:09 -0500)]
Fix ppc32 bug

13 years agoAnother non-GCC configury fix
Anthony Green [Fri, 18 Feb 2011 01:39:21 +0000 (20:39 -0500)]
Another non-GCC configury fix

13 years agoFix ax_cc_maxopt.m4
Anthony Green [Tue, 15 Feb 2011 20:19:49 +0000 (15:19 -0500)]
Fix ax_cc_maxopt.m4

13 years agoFix warning and msvcc patches
Anthony Green [Mon, 14 Feb 2011 20:30:57 +0000 (15:30 -0500)]
Fix warning and msvcc patches

13 years agoAdd missing msvcc.sh
Anthony Green [Sun, 13 Feb 2011 16:41:05 +0000 (11:41 -0500)]
Add missing msvcc.sh

13 years agoMerge remote branch 'upstream/master'
Landon Fuller [Sun, 13 Feb 2011 13:55:53 +0000 (08:55 -0500)]
Merge remote branch 'upstream/master'

13 years agoFix bad_abi test. rc5.
Anthony Green [Sun, 13 Feb 2011 13:06:39 +0000 (08:06 -0500)]
Fix bad_abi test. rc5.

13 years agoiOS fixes
Anthony Green [Sat, 12 Feb 2011 17:29:36 +0000 (12:29 -0500)]
iOS fixes

13 years agoAdd support for building a full armv6/armv7/i386 universal iOS library
Landon Fuller [Sat, 12 Feb 2011 17:13:46 +0000 (12:13 -0500)]
Add support for building a full armv6/armv7/i386 universal iOS library

13 years agoUpdate my e-mail address.
Landon Fuller [Sat, 12 Feb 2011 16:43:49 +0000 (11:43 -0500)]
Update my e-mail address.

13 years agoFix symbol prefixes on Darwin.
Landon Fuller [Sat, 12 Feb 2011 16:27:00 +0000 (11:27 -0500)]
Fix symbol prefixes on Darwin.

13 years agoModify the ffi_closure structures to hold table/table entry pointers instead of a...
Landon Fuller [Sat, 12 Feb 2011 16:14:54 +0000 (11:14 -0500)]
Modify the ffi_closure structures to hold table/table entry pointers instead of a code buffer.

This re-integrates commit da2773e02ab26cc11a7f.

13 years agoApple assembler support; fixed most gas/ELF-isms.
Landon Fuller [Sat, 12 Feb 2011 16:01:48 +0000 (11:01 -0500)]
Apple assembler support; fixed most gas/ELF-isms.

13 years agoReplace RETLDM macro.
Landon Fuller [Sat, 12 Feb 2011 15:39:18 +0000 (10:39 -0500)]
Replace RETLDM macro.

The macro is incompatible with Apple's assembler; switch to
a simple inline version.

13 years agoSwitch to the current iOS 4.2 SDK.
Landon Fuller [Sat, 12 Feb 2011 15:24:49 +0000 (10:24 -0500)]
Switch to the current iOS 4.2 SDK.

13 years agoMerge remote branch 'upstream/master'
Landon Fuller [Sat, 12 Feb 2011 15:23:19 +0000 (10:23 -0500)]
Merge remote branch 'upstream/master'

13 years agoMerge branch 'master' of github.com:landonf/libffi-ios
Landon Fuller [Sat, 12 Feb 2011 15:21:02 +0000 (10:21 -0500)]
Merge branch 'master' of github.com:landonf/libffi-ios

13 years agoAllow specification of the minimum supported iOS version.
Landon Fuller [Sat, 12 Feb 2011 15:20:42 +0000 (10:20 -0500)]
Allow specification of the minimum supported iOS version.

13 years agorc4
Anthony Green [Sat, 12 Feb 2011 14:33:11 +0000 (09:33 -0500)]
rc4

13 years agoungccify parts of the build
Anthony Green [Sat, 12 Feb 2011 14:29:29 +0000 (09:29 -0500)]
ungccify parts of the build

13 years agoFix permissions
Anthony Green [Fri, 11 Feb 2011 17:23:58 +0000 (12:23 -0500)]
Fix permissions

13 years agoUse newer autotools. Only build debug.c when --enable-debug.
Anthony Green [Fri, 11 Feb 2011 17:23:20 +0000 (12:23 -0500)]
Use newer autotools.  Only build debug.c when --enable-debug.

13 years agoFix xlc build on AIX
Anthony Green [Fri, 11 Feb 2011 12:32:51 +0000 (07:32 -0500)]
Fix xlc build on AIX

13 years agosparc ABI test fix.
Anthony Green [Fri, 11 Feb 2011 12:11:04 +0000 (07:11 -0500)]
sparc ABI test fix.

13 years agoFix tests
Anthony Green [Wed, 9 Feb 2011 23:30:02 +0000 (18:30 -0500)]
Fix tests

13 years agoFix permissions
Anthony Green [Wed, 9 Feb 2011 20:23:06 +0000 (15:23 -0500)]
Fix permissions

13 years agorc3
Anthony Green [Wed, 9 Feb 2011 20:22:23 +0000 (15:22 -0500)]
rc3

13 years agoFix IRIX support
Anthony Green [Wed, 9 Feb 2011 20:12:35 +0000 (15:12 -0500)]
Fix IRIX support

13 years agoAdd powerpc64-*-darwin* support
Anthony Green [Wed, 9 Feb 2011 20:00:42 +0000 (15:00 -0500)]
Add powerpc64-*-darwin* support

13 years agoAdd Interix support
Anthony Green [Wed, 9 Feb 2011 19:56:23 +0000 (14:56 -0500)]
Add Interix support

13 years agoRemove README.markdown form libffi-ios
Anthony Green [Wed, 9 Feb 2011 15:15:02 +0000 (10:15 -0500)]
Remove README.markdown form libffi-ios

13 years agoFix xfails
Anthony Green [Wed, 9 Feb 2011 12:38:43 +0000 (07:38 -0500)]
Fix xfails

13 years agoUpdate README for iOS again
Anthony Green [Wed, 9 Feb 2011 11:26:46 +0000 (06:26 -0500)]
Update README for iOS again

13 years agoUpdate to rc2
Anthony Green [Wed, 9 Feb 2011 11:24:23 +0000 (06:24 -0500)]
Update to rc2

13 years agoAdd ChangeLog entry. Fix copyright headers.
Anthony Green [Wed, 9 Feb 2011 11:11:46 +0000 (06:11 -0500)]
Add ChangeLog entry.  Fix copyright headers.

13 years agoAdd missing change
Anthony Green [Wed, 9 Feb 2011 01:39:51 +0000 (20:39 -0500)]
Add missing change

13 years agoFix make dist
Anthony Green [Wed, 9 Feb 2011 01:37:26 +0000 (20:37 -0500)]
Fix make dist

13 years agofix permissions
Anthony Green [Wed, 9 Feb 2011 00:46:28 +0000 (19:46 -0500)]
fix permissions

13 years ago3.0.10rc1
Anthony Green [Wed, 9 Feb 2011 00:45:59 +0000 (19:45 -0500)]
3.0.10rc1

13 years agoClean ups
Anthony Green [Wed, 9 Feb 2011 00:39:20 +0000 (19:39 -0500)]
Clean ups

13 years agoUpdate README
Anthony Green [Wed, 9 Feb 2011 00:22:56 +0000 (19:22 -0500)]
Update README

13 years agoAdd iOS support
Anthony Green [Wed, 9 Feb 2011 00:20:09 +0000 (19:20 -0500)]
Add iOS support

13 years ago3.0.10rc0 changes
Anthony Green [Tue, 8 Feb 2011 22:04:26 +0000 (17:04 -0500)]
3.0.10rc0 changes

13 years agoRebase from GCC
Anthony Green [Tue, 8 Feb 2011 19:28:59 +0000 (14:28 -0500)]
Rebase from GCC

13 years agocopyright updates patch
Anthony Green [Tue, 8 Feb 2011 18:56:12 +0000 (13:56 -0500)]
copyright updates patch

13 years agoFix msvcc.sh botch
Anthony Green [Tue, 8 Feb 2011 18:50:43 +0000 (13:50 -0500)]
Fix msvcc.sh botch

13 years agoFix HP-UX build
Anthony Green [Tue, 8 Feb 2011 15:49:29 +0000 (10:49 -0500)]
Fix HP-UX build

13 years agoFix sparc v8 aggregate type returns for sun's compiler
Anthony Green [Tue, 8 Feb 2011 15:44:36 +0000 (10:44 -0500)]
Fix sparc v8 aggregate type returns for sun's compiler

13 years agogrammar fix
Anthony Green [Tue, 8 Feb 2011 15:34:23 +0000 (10:34 -0500)]
grammar fix

13 years agoFix AIX build with IBM XLC
Anthony Green [Tue, 8 Feb 2011 15:19:19 +0000 (10:19 -0500)]
Fix AIX build with IBM XLC

13 years agofix win64-underscore patch
Anthony Green [Tue, 8 Feb 2011 15:12:48 +0000 (10:12 -0500)]
fix win64-underscore patch

13 years agox86 pcrel test part 2
Anthony Green [Tue, 8 Feb 2011 15:11:00 +0000 (10:11 -0500)]
x86 pcrel test part 2

13 years agox86 pcrel test
Anthony Green [Tue, 8 Feb 2011 15:10:07 +0000 (10:10 -0500)]
x86 pcrel test

13 years agoRefresh from GCC
Anthony Green [Tue, 8 Feb 2011 12:52:40 +0000 (07:52 -0500)]
Refresh from GCC

13 years agowin64-underscore patch
Anthony Green [Mon, 22 Nov 2010 20:19:57 +0000 (15:19 -0500)]
win64-underscore patch

13 years agoRebase
Anthony Green [Sun, 21 Nov 2010 15:50:56 +0000 (10:50 -0500)]
Rebase

13 years agoInclude the license header in the generated output.
Landon Fuller [Wed, 27 Oct 2010 23:34:51 +0000 (19:34 -0400)]
Include the license header in the generated output.

13 years agoAdd missing copyright/license header.
Landon Fuller [Wed, 27 Oct 2010 17:59:30 +0000 (13:59 -0400)]
Add missing copyright/license header.

13 years agoMinor README fix.
Landon Fuller [Mon, 20 Sep 2010 02:57:17 +0000 (19:57 -0700)]
Minor README fix.

13 years agoMinor README fix.
Landon Fuller [Mon, 20 Sep 2010 02:50:37 +0000 (19:50 -0700)]
Minor README fix.

13 years agoAdd a libffi-ios-specific github README.
Landon Fuller [Mon, 20 Sep 2010 02:49:39 +0000 (19:49 -0700)]
Add a libffi-ios-specific github README.

13 years agoImplement FFI_EXEC_TRAMPOLINE_TABLE allocator for iOS/ARM.
Landon Fuller [Sun, 19 Sep 2010 21:36:45 +0000 (14:36 -0700)]
Implement FFI_EXEC_TRAMPOLINE_TABLE allocator for iOS/ARM.

This provides working closure support on iOS/ARM devices where
PROT_WRITE|PROT_EXEC is not permitted. The code passes basic
smoke tests, but requires further review.

13 years agoRename the generated symbol
Landon Fuller [Sun, 19 Sep 2010 21:22:26 +0000 (14:22 -0700)]
Rename the generated symbol

13 years agoModify the ffi_closure structures to hold table/table entry pointers instead of a...
Landon Fuller [Sun, 19 Sep 2010 21:21:37 +0000 (14:21 -0700)]
Modify the ffi_closure structures to hold table/table entry pointers instead of a code buffer.

13 years agoRegenerated the autoconf script
Landon Fuller [Sun, 19 Sep 2010 21:21:14 +0000 (14:21 -0700)]
Regenerated the autoconf script

13 years agoEnable AC_SUBST for FFI_EXEC_TRAMPOLINE_TABLE
Landon Fuller [Sun, 19 Sep 2010 21:20:52 +0000 (14:20 -0700)]
Enable AC_SUBST for FFI_EXEC_TRAMPOLINE_TABLE

13 years agoAdd a hard-coded FFI_EXEC_TRAMPOLINE_TABLE arm implementation.
Landon Fuller [Sun, 19 Sep 2010 17:43:06 +0000 (10:43 -0700)]
Add a hard-coded FFI_EXEC_TRAMPOLINE_TABLE arm implementation.

This implements support for re-mapping a shared table of executable
trampolines directly in front of a writable configuration page, working
around PROT_WRITE restrictions for sandboxed applications on Apple's
iOS.

This implementation is for testing purposes; a proper allocator is still
necessary, and ARM-specific code needs to be moved out of
src/closures.c.

13 years agoFix symbol prefix for ffi_closure_SYSV_inner on Darwin.
Landon Fuller [Sun, 19 Sep 2010 17:42:36 +0000 (10:42 -0700)]
Fix symbol prefix for ffi_closure_SYSV_inner on Darwin.

13 years agoWhitespace/comment fixes.
Landon Fuller [Sun, 19 Sep 2010 16:35:04 +0000 (09:35 -0700)]
Whitespace/comment fixes.

13 years agoFix the script name (build-iphone.sh -> build-ios.sh)
Landon Fuller [Sun, 19 Sep 2010 16:04:34 +0000 (09:04 -0700)]
Fix the script name (build-iphone.sh -> build-ios.sh)

13 years agoUpdate the autogenerated autoconf/automake files.
Landon Fuller [Sun, 19 Sep 2010 16:03:52 +0000 (09:03 -0700)]
Update the autogenerated autoconf/automake files.

13 years agoUpdate automake/autoconf to conditionally build src/arm/trampoline.S if FFI_EXEC_TRAM...
Landon Fuller [Sun, 19 Sep 2010 16:02:05 +0000 (09:02 -0700)]
Update automake/autoconf to conditionally build src/arm/trampoline.S if FFI_EXEC_TRAMPOLINE_TABLE is enabled.

13 years agoAdd the trampoline table generated by gentramp.sh
Landon Fuller [Sun, 19 Sep 2010 15:52:33 +0000 (08:52 -0700)]
Add the trampoline table generated by gentramp.sh

13 years agoAdd a shell script that generates the ARM trampoline page.
Landon Fuller [Sun, 19 Sep 2010 15:38:19 +0000 (08:38 -0700)]
Add a shell script that generates the ARM trampoline page.

This generates a page of 340 trampolines, aligned within one page. The
trampolines use pc-relative addressing to reference config data
(context, jump address) from a page placed directly prior to the
trampoline page. This can be used on systems -- such as iOS -- that do not
support writable, executable memory by remapping the executable page
containing the trampolines directly above a newly allocated writable
config page.

13 years agoUpdate autoconf files
Landon Fuller [Sun, 19 Sep 2010 01:12:19 +0000 (18:12 -0700)]
Update autoconf files

13 years agoAdd autoconf check for W^X platforms that require a trampoline table.
Landon Fuller [Sun, 19 Sep 2010 01:08:14 +0000 (18:08 -0700)]
Add autoconf check for W^X platforms that require a trampoline table.

This adds the FFI_EXEC_TRAMPOLINE_TABLE. The flag is enabled for
arm-apple-darwin, where PROT_EXEC on writable (or formerly writable) pages is
not permitted for sandboxed binaries.

13 years agoUse the correct host triple for arm/darwin
Landon Fuller [Sun, 19 Sep 2010 01:02:25 +0000 (18:02 -0700)]
Use the correct host triple for arm/darwin

13 years agoAdd missing UNWIND entry; disables .pad on non-EABI targets.
Landon Fuller [Sat, 18 Sep 2010 23:38:03 +0000 (16:38 -0700)]
Add missing UNWIND entry; disables .pad on non-EABI targets.

13 years agoApple assembler support; fixed most gas/ELF-isms.
Landon Fuller [Sat, 18 Sep 2010 23:21:32 +0000 (16:21 -0700)]
Apple assembler support; fixed most gas/ELF-isms.

13 years agoFix placement of the __APPLE__ macro.
Landon Fuller [Sat, 18 Sep 2010 22:38:06 +0000 (15:38 -0700)]
Fix placement of the __APPLE__ macro.

13 years agoWork-around libffi's FP ABI detection.
Landon Fuller [Sat, 18 Sep 2010 22:32:08 +0000 (15:32 -0700)]
Work-around libffi's FP ABI detection.

On iOS, we must use the AAPCS floating point return value calling
conventions. libffi's ARM implementation will only use these conventions
if __SOFTFP__ is defined, which is not the case when GCC's
-mfloat-abi defaults to 'softfp' instead of 'soft'. To work around this
we manually define __SOFTFP__ for Apple platforms in the ARM-specific
sysv.S.

See also:
  http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/iPhoneOSABIReference/Introduction/Introduction.html
  http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042d/IHI0042D_aapcs.pdf

13 years agoAdd a stub iOS build script to drive autoconf
Landon Fuller [Sat, 18 Sep 2010 21:44:24 +0000 (14:44 -0700)]
Add a stub iOS build script to drive autoconf

13 years agoRestore execute permissions
Anthony Green [Fri, 6 Aug 2010 05:35:12 +0000 (01:35 -0400)]
Restore execute permissions

13 years agoFix win64-struct-args patch
Anthony Green [Thu, 5 Aug 2010 19:19:00 +0000 (15:19 -0400)]
Fix win64-struct-args patch

13 years agoFix debug build for windows
Anthony Green [Thu, 5 Aug 2010 18:56:53 +0000 (14:56 -0400)]
Fix debug build for windows

13 years agoDon't use -safeseh with ml64
Anthony Green [Thu, 5 Aug 2010 13:02:41 +0000 (09:02 -0400)]
Don't use -safeseh with ml64

13 years agostdcall-x86-closure-fix
Anthony Green [Thu, 5 Aug 2010 12:48:16 +0000 (08:48 -0400)]
stdcall-x86-closure-fix