dwarf2 unwind info check broken
Andreas Jaeger
aj@suse.de
Sun Mar 24 08:32:00 GMT 2002
Jakub Jelinek <jakub@redhat.com> writes:
> So the unwind info check should be extended to something like
> (untested):
I've tested this now extensivly and I'm happy with the appended
version of this patch.
Ok to commit?
Andreas
2002-03-24 Jakub Jelinek <jakub@redhat.com>,
Andreas Jaeger <aj@suse.de>
* configure.in: Fix DWARF2 unwind info check for newer GCC and
binutils.
============================================================
Index: configure.in
--- configure.in 2002/03/16 02:54:00 1.340
+++ configure.in 2002/03/24 16:22:04
@@ -1389,7 +1389,7 @@ fi
AC_CACHE_CHECK(for DWARF2 unwind info support, libc_cv_gcc_dwarf2_unwind_info,
[cat > conftest.c <<EOF
#line __oline__ "configure"
-static char __EH_FRAME_BEGIN__[];
+static char *__EH_FRAME_BEGIN__;
_start ()
{
#ifdef CHECK__register_frame
@@ -1421,6 +1421,20 @@ if AC_TRY_COMMAND([${CC-cc} $CFLAGS -DCH
else
libc_cv_gcc_dwarf2_unwind_info=no
fi
+if AC_TRY_COMMAND([${CC-cc} $CFLAGS -DCHECK__register_frame_info
+ -nostdlib -nostartfiles
+ -o conftest conftest.c -lgcc -lgcc_eh >&AC_FD_CC]); then
+ if ${CC-cc} $CFLAGS -DCHECK__register_frame_info -nostdlib -nostartfiles \
+ -o conftest conftest.c -lgcc -lgcc_eh -v 2>&1 >/dev/null \
+ | grep -q -- --eh-frame-hdr; then
+ libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
+ else
+ libc_cv_gcc_dwarf2_unwind_info=static
+ fi
+else
+ libc_cv_gcc_dwarf2_unwind_info=no
+fi
+
if test $libc_cv_gcc_dwarf2_unwind_info = no; then
if AC_TRY_COMMAND([${CC-cc} $CFLAGS -DCHECK__register_frame
-nostdlib -nostartfiles
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list