diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-08-31 11:00:35 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-08-31 11:00:35 +0200 |
commit | a292fbae0f92d632b23da6f59dece20063566dea (patch) | |
tree | 4f3bcde588f34212b4afaff3c41e22ab00cdc974 /patches | |
parent | 4f3b8830714cd85e778306881d83c99c8e4d84f3 (diff) | |
download | crosstool-ng-a292fbae0f92d632b23da6f59dece20063566dea.tar.gz crosstool-ng-a292fbae0f92d632b23da6f59dece20063566dea.tar.bz2 crosstool-ng-a292fbae0f92d632b23da6f59dece20063566dea.zip |
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>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/uClibc/0.9.32/170-Conditionalize-use-libgcc_eh-when-libubacktrace-is-n.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/patches/uClibc/0.9.32/170-Conditionalize-use-libgcc_eh-when-libubacktrace-is-n.patch b/patches/uClibc/0.9.32/170-Conditionalize-use-libgcc_eh-when-libubacktrace-is-n.patch new file mode 100644 index 00000000..209e7f16 --- /dev/null +++ b/patches/uClibc/0.9.32/170-Conditionalize-use-libgcc_eh-when-libubacktrace-is-n.patch @@ -0,0 +1,29 @@ +From the uClibc ML archives: + http://lists.uclibc.org/pipermail/uclibc/2011-June/045411.html + +>From 364a3a9c576d604bed146efe0b8b33d2b81d4c64 Mon Sep 17 00:00:00 2001 +From: Jason Woodward <jason.woodward@timesys.com> +Date: Sat, 11 Jun 2011 01:08:48 -0400 +Subject: [PATCH 1/3] Conditionalize use libgcc_eh when libubacktrace is not enabled + +Signed-off-by: Jason Woodward <jason.woodward@timesys.com> +--- + libubacktrace/Makefile.in | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/libubacktrace/Makefile.in b/libubacktrace/Makefile.in +index f75f68b..880a8af 100644 +--- a/libubacktrace/Makefile.in ++++ b/libubacktrace/Makefile.in +@@ -12,7 +12,7 @@ CFLAGS-libubacktrace := -DNOT_IN_libc -DIS_IN_libubacktrace $(SSP_ALL_CFLAGS) + + LDFLAGS-libubacktrace.so := $(LDFLAGS) $(top_builddir)lib/libdl-$(VERSION).so + +-ifeq ($(CONFIG_ARM_EABI),y) ++ifeq ($(UCLIBC_HAS_BACKTRACE)$(CONFIG_ARM_EABI),yy) + LIBGCC += $(shell $(CC) -print-file-name=libgcc_eh.a) + endif + +-- +1.7.0.4 + |