Bug 50532 - [patch] libffi needs FFI_MMAP_EXEC_WRIT on kfreebsd-amd64
Summary: [patch] libffi needs FFI_MMAP_EXEC_WRIT on kfreebsd-amd64
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libffi (show other bugs)
Version: 4.6.1
: P3 normal
Target Milestone: 4.8.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-27 11:51 UTC by Petr.Salinger
Modified: 2021-09-15 09:03 UTC (History)
0 users

See Also:
Host: x86_64-pc-kfreebsd-gnu
Target: x86_64-pc-kfreebsd-gnu
Build: x86_64-pc-kfreebsd-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr.Salinger 2011-09-27 11:51:00 UTC
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
Comment 1 Andrew Pinski 2021-09-15 09:03:01 UTC
Fixed in r0-121058 which was a merge from upstream.