diff options
author | Salvatore Cro <salvatore.cro@st.com> | 2010-09-09 15:45:44 +0200 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2010-09-15 12:31:22 +0200 |
commit | 37eb913ed8c4798b736e678f4dbd9f4a91a68f74 (patch) | |
tree | 63fc2c1dbb887a043a7291c9c6215d2db7b5ba5a /libubacktrace/sysdeps/sh/Makefile.arch | |
parent | 7ac7be14eb4c8927fddffbe01fed74c605bf8597 (diff) |
libubacktrace: Provide uClibc with backtrace functions
A new shared object, libubacktrace.so.0 is added to uClibc
to provide backtrace functions to support application self-debugging.
This set of functions requires to dynamically load libgcc_s.so so they
need to call dlopen/dlsym that are provided by libdl. For this reason
they cannot be included into libc.so.0 but are provided by a new library.
User application that wants to use backtrace needs to be compiled with
-fexceptions option and -rdynamic to get full symbols printed and must be
linked against libubacktrace.so
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libubacktrace/sysdeps/sh/Makefile.arch')
-rw-r--r-- | libubacktrace/sysdeps/sh/Makefile.arch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libubacktrace/sysdeps/sh/Makefile.arch b/libubacktrace/sysdeps/sh/Makefile.arch new file mode 100644 index 000000000..9b0de385b --- /dev/null +++ b/libubacktrace/sysdeps/sh/Makefile.arch @@ -0,0 +1,12 @@ +# Makefile for uClibc (sh/libubacktrace) +# +# Copyright (C) 2010 STMicroelectronics Ltd +# Author: Carmelo Amoroso <carmelo.amoroso@st.com> + +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. +# + +libubacktrace_ARCH_SRC-y := backtrace.c + +# -fexections is required for backtrace to work using dwarf2 +CFLAGS-backtrace.c := -fexceptions |