Commit Graph

994 Commits

Author SHA1 Message Date
Tom Tromey
aa7ed78c0e Merge pull request #268 from frida/fix/aarch64-large-aggregates
aarch64: Fix handling of aggregates larger than 16 bytes
2016-08-10 15:03:37 -06:00
Ole André Vadla Ravnås
4da814b18a aarch64: Fix handling of aggregates larger than 16 bytes
Instead of allocating stack space for a pointer we would allocate stack
space for the actual aggregate size.
2016-08-10 22:48:09 +02:00
Tom Tromey
1daa787999 Merge pull request #270 from frida/fix/aarch64-warnings
Fix aarch64 warnings
2016-08-10 14:31:09 -06:00
Ole André Vadla Ravnås
5e9ac7e252 aarch64: Fix warning about unused function on iOS 2016-08-10 17:07:17 +02:00
Ole André Vadla Ravnås
4d1f11f6a9 aarch64: Fix operand size warning reported by Clang 2016-08-10 17:07:11 +02:00
Tom Tromey
f03ba20328 Merge pull request #266 from dr-hannibal/arc-pthread
Make testing easier outside of build directory and especially for ARC
2016-08-02 10:23:25 -06:00
Yuriy Kolerov
ef8be84de5 Do not use fabsl() in float2.c test
Some targets may support long double variables but in the same
time may lack support of long double functions like fabsl().

Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
2016-07-29 21:05:22 +03:00
Yuriy Kolerov
f3201733d5 Fix output expectations in cls_dbls_struct.c test
This test with invalid output expectations may fail on some targets
(e.g. ARC processors).

Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
2016-07-29 19:18:41 +03:00
Yuriy Kolerov
f74ea2dc79 Allow setting an arbitary value for blddirffi in testsuite
It is useful when tests are executed not from build directory. So
the path of the build directory may be passed through site.exp or
runtest.

Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
2016-07-28 21:34:06 +03:00
Yuriy Kolerov
31362d785e ARC: Link tests with pthread library
Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
2016-07-28 18:48:23 +03:00
Richard Henderson
40e4063ab4 Merge pull request #261 from tromey/fix-260
Don't dereference "ecif" before NULL check
2016-07-07 23:11:38 -07:00
Tom Tromey
cf4b2a5041 Don't dereference "ecif" before NULL check
Fixes #260
2016-06-17 10:09:44 +01:00
Richard Henderson
c0829e6284 Merge pull request #259 from rth7680/master
Mark win64.S with GNU-stack note
2016-06-05 15:05:21 -07:00
Richard Henderson
794a54d4a6 Mark win64.S with GNU-stack note 2016-06-05 14:57:00 -07:00
Richard Henderson
96d9bf4b55 Merge pull request #253 from iains/darwin-build
Some Darwin build fixes
2016-06-03 23:04:56 -07:00
Iain Sandoe
52fbd12dca [Darwin-ppc, build] Fixes for clang build.
clang is experimental on powerpc-darwin, but the changes are appropriate to cctools as as well.

Use the 'official' simplified cmpwi insn, rather than the implied one accepted by cctools.
Do not re-use a set value.
2016-05-26 09:06:35 +01:00
Iain Sandoe
92810b4bc1 [Darwin-x86, build] Fix up label prefixes, remove .purgem
Darwin uses a label prefix of _.
cctools assembler will not accept .purgem as a directive.
2016-05-26 09:06:35 +01:00
Iain Sandoe
30b3440cfd [Darwin, configure] Allow configure to work for <arch>-*-darwin.
The exec configury is appropriate for all current targets (including using older tools on them).
2016-05-26 08:55:04 +01:00
Tom Tromey
02089a1b5c Merge pull request #237 from tschwinge/libffi_feature_test
Simplify/fix libffi_feature_test
2016-05-23 09:58:51 -06:00
Richard Henderson
5d0365c605 Merge pull request #251 from berkerpeksag/delete-test-define
Remove unused FFI_CLOSURE_TEST
2016-05-19 09:35:38 -07:00
Berker Peksag
74b3f52014 Remove unused FFI_CLOSURE_TEST
It was here since the first commit c6dddbd (warning: huge diff) and
it wasn't defined by the configure script. It was probably used
manually during development.
2016-05-19 18:05:36 +03:00
Tom Tromey
584a140e75 Merge pull request #248 from berkerpeksag/patch-1
Delete empty env in .travis.yml
2016-05-19 06:36:38 -06:00
Berker Peksag
b3496dedbb Delete empty env in .travis.yml 2016-05-19 10:53:07 +03:00
Richard Henderson
c61775497e Merge pull request #247 from rth7680/symver
Add parent to symbol version LIBFFI_BASE_7.1
2016-05-18 11:10:33 -07:00
Richard Henderson
33d9a31d34 Add parent to symbol version LIBFFI_BASE_7.1 2016-05-18 11:01:55 -07:00
Richard Henderson
9edaa695c5 Merge pull request #230 from rth7680/symver
Use ELF symbol versioning
2016-05-18 10:56:19 -07:00
Tom Tromey
0969a1c1b3 Merge pull request #232 from berkerpeksag/signcompare
Fix -Wsign-compare warnings in x86/ffi64.c
2016-05-18 10:09:28 -06:00
Tom Tromey
571b1ca627 Merge pull request #233 from berkerpeksag/mremap
Define _GNU_SOURCE on Linux for mremap()
2016-05-18 10:08:59 -06:00
Tom Tromey
069d2e4e16 Merge pull request #246 from berkerpeksag/update-github-links
Update project URLs to use libffi/libffi
2016-05-18 10:07:31 -06:00
Berker Peksag
1b4f5ee6a4 Update project URLs to use libffi/libffi 2016-05-18 11:12:58 +03:00
Berker Peksag
1e82e1cda4 Define _GNU_SOURCE on Linux for mremap()
This was committed to CPython's libffi copy in
https://bugs.python.org/issue10309

mremap() documentation says _GNU_SOURCE needs to
be defined in order to use mremap(): see the
synopsis section at http://linux.die.net/man/2/mremap

Original commit: https://hg.python.org/cpython/rev/9986fff720a2

Original patch was written by Hallvard B Furuseth.
2016-05-18 10:42:38 +03:00
Berker Peksag
4a677a425c Fix -Wsign-compare warnings in x86/ffi64.c
This was originally reported on the Python tracker:

  httpa://bugs.python.org/issue23958

The original patch was written by Steve R. Hastings.

I've updated it to current master of libffi.
2016-05-18 10:35:20 +03:00
Tom Tromey
a44a5b863a Merge pull request #234 from berkerpeksag/disable-docs
Add a note about the --disable-docs switch
2016-05-17 17:07:27 -06:00
Tom Tromey
9443eaeda8 Merge pull request #242 from somasis/master
Fix usage on musl libc
2016-05-17 17:04:50 -06:00
Richard Henderson
8a0a4e25ef Update symbol versioning for ffi_get_struct_offsets
Given that the original symbol versioning patch has shipped
with gcc-6, it would be kind to keep that as a valid base ABI
and make subsequent changes to version 7.1.
2016-05-04 07:33:41 -10:00
Richard Henderson
c02c341444 Use ELF symbol versioning
At the same time, we must bump the (major) ABI version.  This needed to be
done anyway due to ABI breakage in the AArch64 port (see 12cf89ee and the
corresponding GCC PR70024).
2016-05-04 06:49:50 -10:00
Richard Henderson
14be9a1d07 Merge pull request #245 from rth7680/tromey-ffi-prep-cif-core-is-private
A rebase of #219
2016-05-04 06:45:05 -10:00
Tom Tromey
b50eabf489 minor comment cleanup
This patch minor cleans up ffi.h.in comments in a minor way.  It fixes
some typos and capitalizations, adds some periods, and reformats some
comments to a more GNU-ish style.  It also fixes up some stale
documentation.
2016-05-04 06:39:21 -10:00
Tom Tromey
6c07077a61 Change ffi.h.in so that braces match
This is a tiny refactoring to make it so brace-matching works in
Emacs.
2016-05-04 06:38:34 -10:00
Tom Tromey
2fbc0369b8 move ffi_prep_cif_core to ffi_common.h 2016-05-04 06:38:34 -10:00
Tom Tromey
1cea273758 Merge pull request #231 from berkerpeksag/simplfy-oserror
Simplify error handling in mkdir_p()
2016-05-03 08:23:51 -06:00
Richard Henderson
48bfae1f37 Merge pull request #236 from andreas-schwab/master
Define FFI_SIZEOF_JAVA_RAW for aarch64 ILP32
2016-05-02 20:58:57 -10:00
Richard Henderson
6d8711057b Merge pull request #241 from rth7680/fix-win64
Fix win64 abi calling from unix64
2016-05-01 11:02:40 -10:00
Kylie McClain
e169ba2b83 Fix usage on musl libc
A gcc compiled on musl does not define __gnu_linux__, it defines __linux__.
Only on glibc does __gnu_linux__ get defined, but both define __linux__, so
we should check for that instead.

With this patch, libffi works perfectly, and passes its testsuite entirely
on musl libc systems.
2016-04-29 21:31:59 -04:00
Richard Henderson
e5843a3a09 x86: Fix calling convention for ffi_closure_win64_inner
Also enable testing for the cross-abi calls.
2016-04-29 14:17:36 -07:00
Richard Henderson
d06751979b x86: Copy fix for clang .org from unix64.S
Clang doesn't understand .org with symbolic operands.
2016-04-15 16:10:28 -07:00
Thomas Schwinge
c884551781 Simplify/fix libffi_feature_test
As detailed in
<http://news.gmane.org/find-root.php?message_id=%3C87wppswqqt.fsf%40kepler.schwinge.homeip.net%3E>,
the original code (originally added in commit
f1301a54bb as part of pull request #145) does not
work (at least not for me, in the GCC environment).
2016-03-16 17:37:07 +01:00
Andreas Schwab
d76975dbd2 Define FFI_SIZEOF_JAVA_RAW for aarch64 ILP32
Like x32, aarch64 ILP32 needs to define FFI_SIZEOF_JAVA_RAW.  This fixes
the java interpreter.
2016-03-16 12:23:07 +01:00
Anthony Green
9de24a3ff3 Merge pull request #212 from tromey/struct-layout
add ffi_get_struct_offsets
2016-03-14 13:54:53 -04:00
Berker Peksag
2627fc98e8 Add a note about the --disable-docs switch
Closes #204
2016-03-07 18:43:03 +02:00