18 Commits

Author SHA1 Message Date
Bernhard Reutner-Fischer
41537a770b buildsys: fix IS_IN_lib*
define NOT_IN_libc / IS_IN_libxxx appropriately
to fix pthread_once

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-09-16 22:42:06 +02:00
Filippo Arcidiacono
e19afed1bd libubacktrace: fix build due to some typos
Commit 71c10c484e broke libubactrace build
due to some typos, so that backtrace.o[sS] were not built.
This definetively fixes this problem.

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2013-05-28 09:26:10 +02:00
Filippo Arcidiacono
71c10c484e libubacktrace: fix backtrace for statically linked application
libgcc_s.so's unwinder could not access unwind tables of statically
linked binaries, so we really want to use _Unwind_* stuff from
libgcc_eh.a.
It required to build backtrace.c differentiating between shared and
static case.

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2013-05-13 10:11:50 +02:00
Bernhard Reutner-Fischer
0007638b54 libubacktrace: use libgcc_s.h
for consistency

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2013-03-14 22:49:25 +01:00
Mike Frysinger
266bdc1f62 Replace FSF snail mail address with URLs
This matches a similar change made to glibc.

No functional changes here.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-11-18 06:03:38 -05:00
Bernhard Reutner-Fischer
11d8a813ed libubacktrace: arm: Fix typo in assert
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-06-11 14:28:57 +02:00
Carmelo Amoroso
219aa9c2dd libubacktrace:arm: libgcc_eh.a not needed
Dummy symbol is __aeabi_unwind_cpp_pr is part of uclibc_shared.a

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2012-01-27 13:38:42 +01:00
Carmelo Amoroso
b80b28ee6f libc_arm: avoid multiple version of __aeabi_unwind_cpp_pr dummy code
Do not pollute libraries with its own implementation of __aeabi_unwind_cpp_pr1 code.
Just add it to uclibc_nonshared.a archive and share it.
This fixes build issue with static linking of application due to multiple symbol
definition in libgcc_eh-a and libpthread.a or librt.a

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2012-01-27 10:05:09 +01:00
Khem Raj
a0d7a45875 libubacktrace: Add arm implementation
Arm has a different mechanism of getting
_Unwind_GetIP. Therefore we provide arch
specific backtrace file.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2012-01-23 16:10:39 -08:00
Carmelo Amoroso
93a11d8bb2 libubacktrace: use -asynchronous-funwind-tables rather than -funwind-tables
From gcc documentation, we can read:
" ...
-fasynchronous-unwind-tables
    Generate unwind table in dwarf2 format, if supported by target
    machine. The table is exact at each instruction boundary, so it can be
    used for stack unwinding from asynchronous events (such as debugger or
    garbage collector)
..."

So it seems better rather than using -funwind-tables (glibc seems to prefer
-fasynchronous-unwind-tables).

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
2012-01-13 12:27:29 +01:00
Carmelo Amoroso
8a8434b367 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>
2011-12-22 15:30:20 +01:00
Jason Woodward
f1505e1581 libubacktrace: Conditionally link libgcc_eh
When libubacktrace is not enabled there is no need to link in libgcc_eh
Fixes bootstrap failures with (gcc-4.5.x) stage1 compilers that --disable-shared

Signed-off-by: Jason Woodward <jason.woodward@timesys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-08 09:16:15 +01:00
Carmelo Amoroso
c61993f7e0 libubacktrace: fix makefile clean target
Fix makefile lean target removing the old reference to the non
existing libubacktrace_ARCH_OUT variable.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2011-06-24 16:27:36 +02:00
Bernhard Reutner-Fischer
bbb07be585 Revert "libubacktrace: fix config-symbol handling"
This reverts commit 7a080cd149.

This symbol is in fact different (as it is set no 'n').
2011-05-11 19:16:17 +02:00
Bernhard Reutner-Fischer
7a080cd149 libubacktrace: fix config-symbol handling
Config symbals that are not set are empty, not 'n'.
2011-05-11 09:56:55 +02:00
Henning Heinold
4916fd889e libubacktrace: fix backtrace support on arm-eabi, which needs libgcc_eh linked too
Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2011-05-04 06:56:14 +02:00
Carmelo Amoroso
7b5b79f09f libubacktrace: generic implementation based dwarf
Use the initial implementation for SH4 based on dwarf for all archs.
Indeed there are not obvious reason for which it should not work in general.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2011-04-22 12:55:43 +02:00
Salvatore Cro
37eb913ed8 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>
2010-09-15 12:31:22 +02:00