This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libffi/50532] New: [patch] libffi needs FFI_MMAP_EXEC_WRIT on kfreebsd-amd64
- From: "Petr.Salinger at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 27 Sep 2011 11:51:00 +0000
- Subject: [Bug libffi/50532] New: [patch] libffi needs FFI_MMAP_EXEC_WRIT on kfreebsd-amd64
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50532
Bug #: 50532
Summary: [patch] libffi needs FFI_MMAP_EXEC_WRIT on
kfreebsd-amd64
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: libffi
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: Petr.Salinger@seznam.cz
libffi crashes under kfreebsd-amd64 in trampoline.
As the GNU/kFreeBSD uses the same kernel as plain FreeBSD, it suffices
--- src/libffi/configure.ac
+++ src/libffi/configure.ac
@@ -313,7 +313,7 @@
fi
case "$target" in
- *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
+ *-apple-darwin10* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* |
*-pc-solaris*)
AC_DEFINE(FFI_MMAP_EXEC_WRIT, 1,
[Cannot use malloc on this target, so, we revert to
alternative means])
See also original Debian bug
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=642928
Many thanks
Petr