aboutsummaryrefslogtreecommitdiff
path: root/libffi/configure.ac
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2010-03-15 19:36:26 +0000
committerRainer Orth <ro@gcc.gnu.org>2010-03-15 19:36:26 +0000
commitf4b130bb743f1d86d8976bfb5ed5ef471ef619f8 (patch)
treeb08b4948d80791b0d6ae7cf89ddff136424373b8 /libffi/configure.ac
parent7dee65d88aac66bb29077c470a10b6969ac8450d (diff)
downloadgcc-f4b130bb743f1d86d8976bfb5ed5ef471ef619f8.zip
gcc-f4b130bb743f1d86d8976bfb5ed5ef471ef619f8.tar.gz
gcc-f4b130bb743f1d86d8976bfb5ed5ef471ef619f8.tar.bz2
configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
* configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test. * configure: Regenerate. * fficonfig.h.in: Regenerate. * libffi/src/x86/unix64.S (.eh_frame) [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type. From-SVN: r157466
Diffstat (limited to 'libffi/configure.ac')
-rw-r--r--libffi/configure.ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/libffi/configure.ac b/libffi/configure.ac
index c0e0da1..1b484f9 100644
--- a/libffi/configure.ac
+++ b/libffi/configure.ac
@@ -284,6 +284,21 @@ case "$target" in
;;
esac
+if test x$TARGET = xX86_64; then
+ AC_CACHE_CHECK([assembler supports unwind section type],
+ libffi_cv_as_x86_64_unwind_section_type, [
+ libffi_cv_as_x86_64_unwind_section_type=yes
+ echo '.section .eh_frame,"a",@unwind' > conftest.s
+ if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
+ libffi_cv_as_x86_64_unwind_section_type=no
+ fi
+ ])
+ if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
+ AC_DEFINE(HAVE_AS_X86_64_UNWIND_SECTION_TYPE, 1,
+ [Define if your assembler supports unwind section type.])
+ fi
+fi
+
AC_CACHE_CHECK([whether .eh_frame section should be read-only],
libffi_cv_ro_eh_frame, [
libffi_cv_ro_eh_frame=no