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