[git commit] libc: build abort with unwind-info for backtrace

Carmelo AMOROSO carmelo.amoroso at st.com
Mon Jan 16 07:51:06 UTC 2012


On 15/01/2012 12.27, Bernhard Reutner-Fischer wrote:
> commit: http://git.uclibc.org/uClibc/commit/?id=4db2caac1ccfade5fcde67c9800d7f3512220137
> branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
> 
> If backtrace support is turned on, build raise() and abort() with
> unwind info (fixup 4c9b7f3c21ff21c199e54bfad2fdf3445fa4573d).
> 
> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>

yes, that's better indeed.

thanks,
carmelo

> ---
>  libc/signal/Makefile.in                            |    2 ++
>  libc/stdlib/Makefile.in                            |    2 ++
>  .../sysdeps/unix/sysv/linux/Makefile.commonarch    |    2 ++
>  3 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/libc/signal/Makefile.in b/libc/signal/Makefile.in
> index ed8598b..bb5ba8f 100644
> --- a/libc/signal/Makefile.in
> +++ b/libc/signal/Makefile.in
> @@ -24,7 +24,9 @@ ifneq ($(strip $(ARCH_OBJS)),)
>  CSRC-y := $(filter-out $(notdir $(ARCH_OBJS:.o=.c)),$(CSRC-y))
>  endif
>  
> +ifneq ($(UCLIBC_HAS_BACKTRACE),)
>  CFLAGS-raise.c = -fasynchronous-unwind-tables
> +endif
>  
>  SIGNAL_DIR := $(top_srcdir)libc/signal
>  SIGNAL_OUT := $(top_builddir)libc/signal
> diff --git a/libc/stdlib/Makefile.in b/libc/stdlib/Makefile.in
> index 9e96f03..d927807 100644
> --- a/libc/stdlib/Makefile.in
> +++ b/libc/stdlib/Makefile.in
> @@ -27,7 +27,9 @@ CSRC-$(if $(findstring yy,$(UCLIBC_HAS_FLOATS)$(UCLIBC_SUSV3_LEGACY)),y) += \
>  	gcvt.c
>  CSRC-$(UCLIBC_SUSV3_LEGACY) += mktemp.c
>  
> +ifneq ($(UCLIBC_HAS_BACKTRACE),)
>  CFLAGS-abort.c = -fasynchronous-unwind-tables
> +endif
>  
>  # multi source stdlib.c
>  CSRC-y += abs.c labs.c atoi.c atol.c strtol.c strtoul.c _stdlib_strto_l.c \
> diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/Makefile.commonarch b/libpthread/nptl/sysdeps/unix/sysv/linux/Makefile.commonarch
> index b32bc9b..8a762b7 100644
> --- a/libpthread/nptl/sysdeps/unix/sysv/linux/Makefile.commonarch
> +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/Makefile.commonarch
> @@ -128,7 +128,9 @@ CFLAGS-timer_gettime.c = -I$(top_srcdir)librt -DIS_IN_librt
>  CFLAGS-timer_routines.c = -I$(top_srcdir)librt -DIS_IN_librt
>  CFLAGS-timer_settime.c = -I$(top_srcdir)librt -DIS_IN_librt
>  
> +ifneq ($(UCLIBC_HAS_BACKTRACE),)
>  CFLAGS-raise.c = -fasynchronous-unwind-tables
> +endif
>  
>  CFLAGS-linux = -DNOT_IN_libc -DIS_IN_libpthread $(SSP_ALL_CFLAGS)
>  
> _______________________________________________
> uClibc-cvs mailing list
> uClibc-cvs at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc-cvs
> 



More information about the uClibc-cvs mailing list