summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2011-12-22 15:25:42 +0100
committerCarmelo Amoroso <carmelo.amoroso@st.com>2011-12-22 15:30:20 +0100
commit8a8434b367e0b94b9fda72c99f1c646737725403 (patch)
tree462af75ff21f8c1769f2758bb9525d5a1bec6292
parent3ac5fd7ecaeb6721d812c2b93e446bf9a31acdde (diff)
libubacktrace: use -funwind-tables rather than -fexecptions
For backtrace to work is enough to use -funwind-tables instead of -fexceptions. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
-rw-r--r--libubacktrace/Makefile.in4
-rw-r--r--libubacktrace/backtrace.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/libubacktrace/Makefile.in b/libubacktrace/Makefile.in
index fe1fb64ed..a932f83cf 100644
--- a/libubacktrace/Makefile.in
+++ b/libubacktrace/Makefile.in
@@ -26,8 +26,8 @@ libubacktrace_OUT := $(top_builddir)libubacktrace
libubacktrace_SRC-y :=
libubacktrace_SRC-$(UCLIBC_HAS_BACKTRACE) := backtrace.c backtracesyms.c backtracesymsfd.c
-# -fexections is required for backtrace to work using dwarf2
-CFLAGS-backtrace.c := -fexceptions
+# -funwind-tables is required for backtrace to work using dwarf2
+CFLAGS-backtrace.c := -funwind-tables
libubacktrace_SRCS := $(addprefix $(libubacktrace_DIR)/,$(libubacktrace_SRC-y))
diff --git a/libubacktrace/backtrace.c b/libubacktrace/backtrace.c
index 18b91b1bb..e5f513040 100644
--- a/libubacktrace/backtrace.c
+++ b/libubacktrace/backtrace.c
@@ -2,7 +2,7 @@
* Perform stack unwinding by using the _Unwind_Backtrace.
*
* User application that wants to use backtrace needs to be
- * compiled with -fexceptions option and -rdynamic to get full
+ * compiled with -funwind-tables option and -rdynamic to get full
* symbols printed.
*
* Copyright (C) 2009, 2010 STMicroelectronics Ltd.