aports/main/libc0.9.32/avoid-forced-unwind.patch
William Pitcock 627bf322f5 main/libc0.9.32: avoid libgcc unwind functions in nptl
Normally for 'performance', nptl uses the _Unwind_ForcedUnwind() function,
which is provided by GCC.  However, this function depends on libunwind tracking
all register state, which neither libunwind itself (which we do not want as a
core dependency) or GCC's libunwind support register state on some newer x86
CPUs fully.

Thusly, we turn off the unwind-using code and return to using the traditional
cleanup functions.
2013-06-01 18:14:29 -05:00

11 lines
271 B
Diff

--- uClibc-0.9.33.2.orig/Rules.mak
+++ uClibc-0.9.33.2/Rules.mak
@@ -707,7 +707,6 @@
ifeq ($(UCLIBC_HAS_THREADS),y)
ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
PTNAME := nptl
- CFLAGS += -DHAVE_FORCED_UNWIND
else
ifeq ($(LINUXTHREADS_OLD),y)
PTNAME := linuxthreads.old