|
11d7aa9d
|
2014-02-28T01:06:48
|
|
Merge pull request #46 from makotokato/android-clang
Fix build failure when using clang for Android
|
|
67fbef3b
|
2014-02-28T01:06:48
|
|
Merge pull request #46 from makotokato/android-clang
Fix build failure when using clang for Android
|
|
20698abc
|
2014-02-28T00: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-28T00: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-28T00:50:25
|
|
Merge pull request #75 from joshtriplett/longdouble
Fix build error on x86 without distinct long double
|
|
001aaf4b
|
2014-02-28T00: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-28T00:17:16
|
|
aarch64 fix
|
|
447483d5
|
2014-02-27T15:42:41
|
|
Fix ChangeLog merge
|
|
3998d260
|
2014-02-17T11: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-15T08:06:29
|
|
Merge pull request #72 from heiher/devel
MIPS N32: Fix call floating point va function
|
|
40927bd3
|
2014-01-21T23: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-05T14:22:52
|
|
AArch64: Fix void fall-through case when assertions are enabled
|
|
f466aad0
|
2014-01-21T16:38:31
|
|
AArch64: Fix missing semicolons when assertions are enabled
|
|
0a0f12ce
|
2014-01-09T13:50:17
|
|
AArch64: Remove duplicitous element_count call.
This inhibits an analyzer warning by Clang.
|
|
4330fdcd
|
2014-01-09T13:53:30
|
|
Darwin/aarch64: Respect iOS ABI re: stack argument alignment
|
|
0a333d6c
|
2014-01-09T14:03:29
|
|
Darwin/aarch64: Fix size_t assumptions
|
|
6030cdca
|
2013-12-30T15:45:51
|
|
Darwin/aarch64: Account for long double being equal to double
|
|
5658b089
|
2013-12-30T16:33:47
|
|
Darwin/aarch64: Use CNAME, restrict .size like ARM
|
|
07175780
|
2013-12-30T17:48:22
|
|
Darwin/aarch64: Fix invalid reference in assembly
|
|
9da28b44
|
2013-12-30T16:23:21
|
|
Darwin/x86_64: Fix 64-bit type shortening warnings
|
|
6eff9ff9
|
2013-12-30T17:48:10
|
|
Darwin/iOS: Improve unified syntax use for LLVM
|
|
ba0ea99c
|
2013-12-30T15:27:44
|
|
Fix dlmalloc warnings due to set_segment_flags, sizeof(size_t)
|
|
994be3a5
|
2013-12-30T15:27:14
|
|
Darwin/iOS: Fix mis-typing of vfp_reg_free
|
|
a8e0a835
|
2013-12-30T15:26:20
|
|
Darwin/ARM: Assert on NULL dereference
This inhibits an analyzer warning by Clang on all platforms.
|
|
2c18e3c7
|
2013-12-30T16:14:02
|
|
Darwin/aarch64: Fix "shadows declaration" warnings
|
|
1b8a8e20
|
2014-01-09T13:55:21
|
|
Darwin/aarch64: Use Clang cache invalidation builtin
|
|
13675341
|
2014-01-09T13:42:08
|
|
Darwin/i386: Inhibit Clang previous prototype warnings
|
|
66469c38
|
2014-01-09T13:41:45
|
|
Darwin/ARM: Inhibit Clang previous prototype warnings
|
|
5bfe62a0
|
2014-01-09T13:41:27
|
|
Darwin/AArch64: Inhibit Clang previous prototype warnings
|
|
fa5f25c2
|
2014-01-04T19:00:08
|
|
Linux/ppc64: Remove assumption on contents of r11 in closure
|
|
1a0b01e1
|
2014-01-02T16:17:59
|
|
When the function called by the ffi called a function defined in a shared library generate a fatal error
The correction was to take into consideration the GOT.
|
|
3dc3f32c
|
2013-12-05T16:23:25
|
|
Undo iOS ARM64 changes.
|
|
0278284e
|
2013-11-30T03:03:37
|
|
Darwin/aarch64: size_t assumptions
|
|
9775446b
|
2013-11-30T02:39:34
|
|
Darwin/aarch64: Fix “shadows declaration” warnings
|
|
4260badc
|
2013-11-30T02:08:14
|
|
Darwin/aarch64: Use Clang cache invalidation builtin
|
|
9fa7998d
|
2013-11-30T02:07:48
|
|
Darwin/aarch64: Inhibit Xcode warning
|
|
0e832048
|
2013-11-30T02:07:34
|
|
Darwin/aarch64: double == long double
|
|
b513dfe7
|
2013-11-30T02:05:22
|
|
Darwin/aarch64: Restrict .size to ELF like arm32.
|
|
bc978099
|
2013-11-30T02:04:57
|
|
Darwin/aarch64: Potentially(?) fix compile error
|
|
d6bb9314
|
2013-11-30T02:04:22
|
|
Darwin/aarch64: Use CNAME refs
|
|
33c46ce5
|
2013-11-30T04:13:42
|
|
Darwin/Mac: Fix 64/32 shortening warnings
|
|
0612081e
|
2013-11-30T03:03:00
|
|
Darwin: Misc size_t warnings
|
|
6a6247d1
|
2013-11-30T02:55:48
|
|
Darwin: Fix dlmalloc warnings due to sizeof(size_t)
|
|
953b6f14
|
2012-04-24T11:16:20
|
|
Darwin/iOS: More unified syntax support w/ Clang.
Signed-off-by: Zachary Waldowski <zwaldowski@gmail.com>
|
|
c713a553
|
2012-04-24T10:25:29
|
|
Darwin/iOS: Simplify RETLDM arguments for LLVM 3.1
Signed-off-by: Zachary Waldowski <zwaldowski@gmail.com>
|
|
16ba1b80
|
2012-04-11T23:26:04
|
|
Darwin: Silence Clang warnings.
|
|
ab79d6e2
|
2013-11-21T06:12:35
|
|
This separates the 32-bit sysv/linux/bsd code from the 64-bit linux
code, and makes it possible to link code compiled with different
options to those used to compile libffi. For example, a
-mlong-double-128 libffi can be used with -mlong-double-64 code.
Using the return value area as a place to pass parameters wasn't such
a good idea, causing a failure of cls_ulonglong.c. I didn't see this
when running the mainline gcc libffi testsuite because that version of
the test is inferior to the upstreamm libffi test.
Using NUM_FPR_ARG_REGISTERS rather than NUM_FPR_ARG_REGISTERS64 meant
that a parameter save area could be allocated before it was strictly
necessary. Wrong but harmless. Found when splitting apart ffi.c
into 32-bit and 64-bit support.
|
|
ac753688
|
2013-11-21T06:12:35
|
|
This separates the 32-bit sysv/linux/bsd code from the 64-bit linux
code, and makes it possible to link code compiled with different
options to those used to compile libffi. For example, a
-mlong-double-128 libffi can be used with -mlong-double-64 code.
Using the return value area as a place to pass parameters wasn't such
a good idea, causing a failure of cls_ulonglong.c. I didn't see this
when running the mainline gcc libffi testsuite because that version of
the test is inferior to the upstreamm libffi test.
Using NUM_FPR_ARG_REGISTERS rather than NUM_FPR_ARG_REGISTERS64 meant
that a parameter save area could be allocated before it was strictly
necessary. Wrong but harmless. Found when splitting apart ffi.c
into 32-bit and 64-bit support.
|
|
aa1f62c0
|
2013-11-18T13:11:56
|
|
Fix PowerPC Darwin FDE encodings to use pcrel correctly. Modernise the picbase labels.
|
|
2f450822
|
2013-11-18T06:52:29
|
|
Clean up code to appease modern GCC compiler.
|
|
16d56c51
|
2013-11-18T06:36:03
|
|
An #endif in the wrong place would cause compile failure on powerpcle.
Using bl instead of b doesn't cause runtime failures as you might think,
but does mess the processor branch prediction.
|
|
83f65b63
|
2013-11-16T06:53:50
|
|
Finally, this adds _CALL_ELF == 2 support. ELFv1 objects can't be
linked with ELFv2 objects, so this is one case where preprocessor
tests in ffi.c are fine. Also, there is no need to define a new
FFI_ELFv2 or somesuch value in enum ffi_abi. FFI_LINUX64 will happily
serve both ABIs.
|
|
1fd04578
|
2013-11-16T06:53:50
|
|
Finally, this adds _CALL_ELF == 2 support. ELFv1 objects can't be
linked with ELFv2 objects, so this is one case where preprocessor
tests in ffi.c are fine. Also, there is no need to define a new
FFI_ELFv2 or somesuch value in enum ffi_abi. FFI_LINUX64 will happily
serve both ABIs.
|
|
36285137
|
2013-11-16T06:52:43
|
|
Andreas' 2013-02-08 change reverted some breakage for struct return
values from 2011-11-12, but in so doing reintroduced string
instructions to sysv.S that are not supported on all powerpc variants.
This patch properly copies the bounce buffer to destination in C code
rather than in asm.
I have tested this on powerpc64-linux, powerpc-linux and
powerpc-freebsd. Well, the last on powerpc-linux by lying to
configure with
CC="gcc -m32 -msvr4-struct-return -mlong-double-64" \
CXX="g++ -m32 -msvr4-struct-return -mlong-double-64" \
/src/libffi-current/configure --build=powerpc-freebsd
and then
make && make CC="gcc -m32" CXX="g++ -m32" \
RUNTESTFLAGS=--target_board=unix/-m32/-msvr4-struct-return/-mlong-double-64\
check
|
|
1c06515d
|
2013-11-16T06:41:36
|
|
The powerpc64 ABIs align structs passed by value, a fact ignored by
gcc for quite some time. Since gcc now does the correct alignment,
libffi needs to follow suit. This ought to be made selectable via
a new abi value, and the #ifdefs removed from ffi.c along with many
other #ifdefs present there and in assembly. I'll do that with a
followup patch sometime.
This is a revised version of
https://sourceware.org/ml/libffi-discuss/2013/msg00162.html
|
|
a97cf1fa
|
2013-11-16T06:40:13
|
|
This patch prepares for ELFv2, where sizes of these areas change. It
also makes some minor changes to improve code efficiency.
|
|
164283f4
|
2013-11-16T06:38:55
|
|
The powerpc64 support opted to pass floating point values both in the
fpr area and the parameter save area, necessary when the backend
doesn't know if a function argument corresponds to the ellipsis
arguments of a variadic function. This patch adds powerpc support for
variadic functions, and changes the code to only pass fp in the ABI
mandated area. ELFv2 needs this change since the parameter save area
may not exist there.
This also fixes two faulty tests that used a non-variadic function
cast to call a variadic function, and spuriously reasoned that this is
somehow necessary for static functions..
|
|
77f823e3
|
2013-11-13T14:26:57
|
|
stop trying to assing vfp regs once we are done with the registers
|
|
37067ec5
|
2013-11-12T19:49:01
|
|
mark all vfp registers as used when done.
To avoid assigning registers the would fit, once arguments have been on
the stack, we mark all registers as used once we do not find a free
register for the first time.
|
|
becd7544
|
2013-11-06T06:43:49
|
|
Align the stack pointer to 16-bytes.
|
|
05c31093
|
2013-11-06T06:40:58
|
|
Mark executable as not requiring executable stack.
|
|
c2422174
|
2013-11-02T14:08:23
|
|
Merge pull request #45 from foss-for-synopsys-dwc-arc-processors/arc_support
arc: Fix build error
|
|
f3cd3934
|
2013-11-02T13:17:57
|
|
Merge pull request #51 from vbudovski/for_upstream
Don't use 16 byte aligned stack for WIN32
|
|
d3372c54
|
2013-10-26T08:30:06
|
|
Fix N32 ABI issue for MIPS.
|
|
16b93a21
|
2013-10-15T15:33:59
|
|
Add nios2 port.
|
|
128cd1d2
|
2013-10-08T06:45:51
|
|
Fix spelling errors
|
|
d2fcbcdf
|
2013-10-08T06:27:46
|
|
Add m88k and VAX support. Update some configury bits.
|
|
6aa15900
|
2013-09-05T12:05:06
|
|
Don't use 16 byte aligned stack for WIN32
This fixes a crash when accessing __stdcall functions in Python ctypes.
|
|
3b44d411
|
2013-07-10T15:34:53
|
|
Fix build failure when using clang for Android
clang for Android generates __gnu_linux__ define, but gcc for Android doesn't. So we should add check it for Android
|
|
d3d099b4
|
2013-07-02T16:11:38
|
|
little-endian ppc64 support
|
|
b50a13b9
|
2013-07-02T12:10:26
|
|
Merge pull request #44 from foss-for-synopsys-dwc-arc-processors/arc_support
Add ARC support
|
|
767f1f96
|
2013-07-02T12:08:04
|
|
Merge pull request #43 from JensTimmerman/__m128
added include for xmmintrin.h
|
|
b8a91d81
|
2013-07-02T10:57:37
|
|
added include for xmmintrin.h
|
|
b082e150
|
2013-06-10T16:19:33
|
|
Add ARC support
This adds support for the ARC architecture to libffi. DesignWare ARC
is a family of processors from Synopsys, Inc.
This patch has been tested on a little-endian system and passes
the testsuite.
Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
|
|
9708e7cf
|
2013-03-27T19:31:04
|
|
folow the ARM hard-float ABI in ffi_prep_incoming_args_VFP
|
|
b4112098
|
2013-03-27T16:38:35
|
|
create separated versions of ffi_prep_incoming_args_* for SYSV and VFP ABIs.
The different versions will be called depending on the value of cif->abi
|
|
3c160861
|
2013-03-26T19:24:47
|
|
extend ffi_prepare_args for FFI_VFP (hard-float ABI), fixing an issue with passing VFP arguments in VFP registers and the stack, while at the same time not using all core registers.
|
|
0f2ff2d4
|
2013-03-26T19:22:02
|
|
separate ARM ffi_prepare_args in a version implementing the simple SYSV calling convention and one for the hard-float calling convention
|
|
3a352b8a
|
2013-03-26T14:24:04
|
|
move the hardfloat specific argument copying code to the helper function
|
|
5df6b794
|
2013-03-26T14:02:21
|
|
extract setting of arguments to be passed to a helper function
|
|
7d1048c4
|
2013-03-26T11:33:33
|
|
extract code to align the argument storage pointer to a helper function
|
|
12b1886d
|
2013-03-17T18:32:12
|
|
cygwin fix & updates for 3.0.13
|
|
d08124be
|
2013-03-17T18:32:12
|
|
cygwin fix & updates for 3.0.13
|
|
4acf0056
|
2013-03-16T08:18:45
|
|
Build fix for soft-float power targets
|
|
8a286f57
|
2013-03-16T08:01:19
|
|
Fix for m68000 systems
|
|
d9dd417b
|
2013-03-16T08:01:19
|
|
Fix for m68000 systems
|
|
2fb527a0
|
2013-03-16T07:46:38
|
|
Add Meta processor support
|
|
ee18766b
|
2013-03-14T15:00:33
|
|
Fix for a crasher due to misaligned stack on x86-32.
Full information on reproduction (using Python's ctypes available here: http://bugs.python.org/issue17423)
|
|
f308faf1
|
2013-02-11T14:25:13
|
|
Add moxie support. Release 3.0.12.
|
|
a9521411
|
2013-02-09T06:54:40
|
|
sparc v8 and testsuite fixes
|
|
70b11b47
|
2013-02-08T16:12:19
|
|
Fix small struct passing on ppc
|
|
8bd15d13
|
2013-02-08T13:56:37
|
|
Fix many.c testcase for ppc
|
|
cb03ea8f
|
2013-02-08T12:25:18
|
|
sparc v9 fixes for sun tools
|
|
35ee8d44
|
2013-02-08T07:12:41
|
|
Fix microblaze big-endian struct issue
|
|
9db7e1a9
|
2013-02-07T21:06:08
|
|
Fix botched sparc patch. Update version.
|
|
fd07c9e4
|
2013-02-07T18:00:36
|
|
Add cache flushing routine for sun compiler on sparc solaris 2.8
|
|
6a790129
|
2013-02-06T17:37:15
|
|
Work around LLVM ABI problem on x86-64
|
|
aeb8719a
|
2013-01-21T07:37:30
|
|
New microblaze support
|
|
40860245
|
2013-01-21T07:37:30
|
|
New microblaze support
|
|
20cae32b
|
2013-01-21T07:07:38
|
|
Xtensa support
|