libc/uClibc: add patch to fix fork in threads with ARM EABI
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Aug 31 11:00:35 2011 +0200 (2011-08-31)
changeset 26690e00e4fda2ea
parent 2668 eda6ef5a2532
child 2670 4ae31a5eb546
libc/uClibc: add patch to fix fork in threads with ARM EABI

uClibc-0.9.32 requires libgcc_eh.a (for ARM EABI), but only when libubacktrace
is enabled. As this is not the default, provide a workaround to disable linking
with libgcc_eh.a if libubacktrace is not selected.

This will however still break if uClibc is configured to enable libubacktrace,
but it requires a fix in gcc, and we can take care of that later.

Reported-by: Grant Edwards <grant.b.edwards@gmail.com>
Reported-by: Tor Krill <tor@codeknot.com>
Tested-by: Tor Krill <tor@codeknot.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
patches/uClibc/0.9.32/170-Conditionalize-use-libgcc_eh-when-libubacktrace-is-n.patch
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/uClibc/0.9.32/170-Conditionalize-use-libgcc_eh-when-libubacktrace-is-n.patch	Wed Aug 31 11:00:35 2011 +0200
     1.3 @@ -0,0 +1,29 @@
     1.4 +From the uClibc ML archives:
     1.5 +    http://lists.uclibc.org/pipermail/uclibc/2011-June/045411.html
     1.6 +
     1.7 +>From 364a3a9c576d604bed146efe0b8b33d2b81d4c64 Mon Sep 17 00:00:00 2001
     1.8 +From: Jason Woodward <jason.woodward@timesys.com>
     1.9 +Date: Sat, 11 Jun 2011 01:08:48 -0400
    1.10 +Subject: [PATCH 1/3] Conditionalize use libgcc_eh when libubacktrace is not enabled
    1.11 +
    1.12 +Signed-off-by: Jason Woodward <jason.woodward@timesys.com>
    1.13 +---
    1.14 + libubacktrace/Makefile.in |    2 +-
    1.15 + 1 files changed, 1 insertions(+), 1 deletions(-)
    1.16 +
    1.17 +diff --git a/libubacktrace/Makefile.in b/libubacktrace/Makefile.in
    1.18 +index f75f68b..880a8af 100644
    1.19 +--- a/libubacktrace/Makefile.in
    1.20 ++++ b/libubacktrace/Makefile.in
    1.21 +@@ -12,7 +12,7 @@ CFLAGS-libubacktrace := -DNOT_IN_libc -DIS_IN_libubacktrace $(SSP_ALL_CFLAGS)
    1.22 + 
    1.23 + LDFLAGS-libubacktrace.so := $(LDFLAGS) $(top_builddir)lib/libdl-$(VERSION).so
    1.24 + 
    1.25 +-ifeq ($(CONFIG_ARM_EABI),y)
    1.26 ++ifeq ($(UCLIBC_HAS_BACKTRACE)$(CONFIG_ARM_EABI),yy)
    1.27 + LIBGCC += $(shell $(CC) -print-file-name=libgcc_eh.a)
    1.28 + endif
    1.29 + 
    1.30 +-- 
    1.31 +1.7.0.4
    1.32 +