libffi: restore some small patches
Also, revert file-permission changes.
This commit is contained in:
parent
9832ad7750
commit
2d85fdc02f
|
@ -1,34 +1,10 @@
|
|||
The "libffi" directory holds a copy of libffi (just after version 3.0.13).
|
||||
Similarly, The "libffi_msvc" directory holds a copy of the libffi
|
||||
version from the CTypes project.
|
||||
|
||||
The "libffi" directory holds a copy of libffi version 3.1.
|
||||
The libffi code is distributed under an LGPL-compatible license.
|
||||
CTypes is under the MIT License.
|
||||
|
||||
========== libffi directory =============================================
|
||||
|
||||
Our copy of libffi for Racket has been changed in a few small
|
||||
ways at git commit c3c40e0290377d7cf948b072eedd8317c4bf215e from
|
||||
|
||||
http://github.com/atgreen/libffi
|
||||
|
||||
Local changes:
|
||||
Our copy of libffi for Racket has been changed in a few small:
|
||||
|
||||
* Test ftruncate() result in "closures.c" to avoid a compiler
|
||||
warning.
|
||||
|
||||
* In "x86/darwin.S", added ".long 0" after ".LFE3:" to avoid
|
||||
linker problems compiling with gcc-4.0 on Mac OS X 10.7.
|
||||
|
||||
* In "x86/ffi.c" for Win32, don't try to align stack for
|
||||
stdcall, fastcall, or thiscall.
|
||||
|
||||
* In "x86/freebsd.S", align the stack pointer to 16 bytes.
|
||||
|
||||
========== libffi_msvc directory =====================================
|
||||
|
||||
This directory is synced from the CTypes repository
|
||||
|
||||
http://svn.python.org/projects/ctypes/trunk/ctypes
|
||||
|
||||
revision 60274.
|
||||
|
|
0
racket/src/foreign/libffi/compile
Normal file → Executable file
0
racket/src/foreign/libffi/compile
Normal file → Executable file
0
racket/src/foreign/libffi/config.guess
vendored
Normal file → Executable file
0
racket/src/foreign/libffi/config.guess
vendored
Normal file → Executable file
0
racket/src/foreign/libffi/config.sub
vendored
Normal file → Executable file
0
racket/src/foreign/libffi/config.sub
vendored
Normal file → Executable file
0
racket/src/foreign/libffi/configure
vendored
Normal file → Executable file
0
racket/src/foreign/libffi/configure
vendored
Normal file → Executable file
0
racket/src/foreign/libffi/depcomp
Normal file → Executable file
0
racket/src/foreign/libffi/depcomp
Normal file → Executable file
0
racket/src/foreign/libffi/install-sh
Normal file → Executable file
0
racket/src/foreign/libffi/install-sh
Normal file → Executable file
0
racket/src/foreign/libffi/libtool-ldflags
Normal file → Executable file
0
racket/src/foreign/libffi/libtool-ldflags
Normal file → Executable file
0
racket/src/foreign/libffi/missing
Normal file → Executable file
0
racket/src/foreign/libffi/missing
Normal file → Executable file
0
racket/src/foreign/libffi/msvcc.sh
Normal file → Executable file
0
racket/src/foreign/libffi/msvcc.sh
Normal file → Executable file
0
racket/src/foreign/libffi/src/arm/gentramp.sh
Normal file → Executable file
0
racket/src/foreign/libffi/src/arm/gentramp.sh
Normal file → Executable file
|
@ -457,7 +457,8 @@ dlmmap_locked (void *start, size_t length, int prot, int flags, off_t offset)
|
|||
close (execfd);
|
||||
goto retry_open;
|
||||
}
|
||||
ftruncate (execfd, offset);
|
||||
if (ftruncate (execfd, offset)) { /* test avoids a compiler warning */
|
||||
}
|
||||
return MFAIL;
|
||||
}
|
||||
else if (!offset
|
||||
|
@ -469,7 +470,8 @@ dlmmap_locked (void *start, size_t length, int prot, int flags, off_t offset)
|
|||
if (start == MFAIL)
|
||||
{
|
||||
munmap (ptr, length);
|
||||
ftruncate (execfd, offset);
|
||||
if (ftruncate (execfd, offset)) { /* test avoids a compiler warning */
|
||||
}
|
||||
return start;
|
||||
}
|
||||
|
||||
|
|
|
@ -327,6 +327,7 @@ _ffi_closure_raw_SYSV:
|
|||
movl -20(%ebp), %edx
|
||||
jmp .Lrcls_epilogue
|
||||
.LFE3:
|
||||
.long 0
|
||||
#endif
|
||||
|
||||
.section __IMPORT,__jump_table,symbol_stubs,self_modifying_code+pure_instructions,5
|
||||
|
|
Loading…
Reference in New Issue
Block a user