18697N/A--- libffi/configure.ac Mon Mar 15 19:47:38 2010 +0100
18697N/A+++ libffi/configure.ac Mon Mar 15 19:47:38 2010 +0100
18697N/A@@ -284,6 +284,21 @@
18697N/A ;;
18697N/A esac
18697N/A
18697N/A+if test x$TARGET = xX86_64; then
18697N/A+ AC_CACHE_CHECK([assembler supports unwind section type],
18697N/A+ libffi_cv_as_x86_64_unwind_section_type, [
18697N/A+ libffi_cv_as_x86_64_unwind_section_type=yes
18697N/A+ echo '.section .eh_frame,"a",@unwind' > conftest.s
18697N/A+ if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
18697N/A+ libffi_cv_as_x86_64_unwind_section_type=no
18697N/A+ fi
18697N/A+ ])
18697N/A+ if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
18697N/A+ AC_DEFINE(HAVE_AS_X86_64_UNWIND_SECTION_TYPE, 1,
18697N/A+ [Define if your assembler supports unwind section type.])
18697N/A+ fi
18697N/A+fi
18697N/A+
18697N/A AC_CACHE_CHECK([whether .eh_frame section should be read-only],
18697N/A libffi_cv_ro_eh_frame, [
18697N/A libffi_cv_ro_eh_frame=no
18697N/A--- libffi/src/x86/unix64.S Mon Mar 15 19:47:38 2010 +0100
18697N/A+++ libffi/src/x86/unix64.S Mon Mar 15 19:47:38 2010 +0100
18697N/A@@ -324,7 +324,11 @@
18697N/A .LUW9:
18697N/A .size ffi_closure_unix64,.-ffi_closure_unix64
18697N/A
18697N/A+#ifdef HAVE_AS_X86_64_UNWIND_SECTION_TYPE
18697N/A+ .section .eh_frame,"a",@unwind
18697N/A+#else
18697N/A .section .eh_frame,"a",@progbits
18697N/A+#endif
18697N/A .Lframe1:
18697N/A .long .LECIE1-.LSCIE1 /* CIE Length */
18697N/A .LSCIE1: