This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 3/4] alpha: Enable unwind tables for backtrace.c
- From: Richard Henderson <rth at twiddle dot net>
- To: libc-alpha at sourceware dot org
- Date: Wed, 16 Apr 2014 21:49:38 -0700
- Subject: [PATCH 3/4] alpha: Enable unwind tables for backtrace.c
- Authentication-results: sourceware.org; auth=none
- References: <1397710179-28556-1-git-send-email-rth at twiddle dot net>
---
ChangeLog | 3 +++
sysdeps/alpha/Makefile | 5 +++++
2 files changed, 8 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 31731d3..a54ec9a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2014-04-16 Richard Henderson <rth@redhat.com>
+ * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
+ unwind tables.
+
* sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
const from the non-libc, non-ldso copy.
diff --git a/sysdeps/alpha/Makefile b/sysdeps/alpha/Makefile
index 1cf77fb..bf133b9 100644
--- a/sysdeps/alpha/Makefile
+++ b/sysdeps/alpha/Makefile
@@ -20,6 +20,11 @@ ifeq ($(subdir),db2)
CPPFLAGS += -DHAVE_SPINLOCKS=1 -DHAVE_ASSEM_ALPHA=1
endif
+ifeq ($(subdir),debug)
+# Consider making this GCC's default...
+CFLAGS-backtrace.c = -fasynchronous-unwind-tables
+endif
+
ifeq ($(subdir),gmon)
sysdep_routines += _mcount
endif
--
1.9.0