forward errno bug patches from uClibc 0.9.32
cover forward errno bug patches from uClibc 0.9.32
These patches should also be applied to uclibc 0.9.33 in order to avoid
runtime errors with libsoup or other applications that are sensistive to the errno threading bug.
Sagaert Johan (1):
uClibc 0.9.33 : forward errno bug patches from uClibc 0.9.32
...x-e500-__fe_nomask_env-use-of-__set_errno.patch | 34 ++++++++++ .../uClibc-0.9.33-linuxthreads-errno-fix.patch | 68 ++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 toolchain/uClibc/uClibc-0.9.33-Fix-e500-__fe_nomask_env-use-of-__set_errno.patch create mode 100644 toolchain/uClibc/uClibc-0.9.33-linuxthreads-errno-fix.patch
Signature · 1 line
1.7.9.3
PATCH 1/1 uClibc 0.9.33 : forward errno bug patches from uClibc 0.9.32
--- ...x-e500-__fe_nomask_env-use-of-__set_errno.patch | 34 ++++++++++ .../uClibc-0.9.33-linuxthreads-errno-fix.patch | 68 ++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 toolchain/uClibc/uClibc-0.9.33-Fix-e500-__fe_nomask_env-use-of-__set_errno.patch create mode 100644 toolchain/uClibc/uClibc-0.9.33-linuxthreads-errno-fix.patch
toolchain/uClibc/uClibc-0.9.33-Fix-e500-__fe_nomask_env-use-of-__set_errno.patch new file +34 -0
@@ -0,0 +1,34 @@ +>From 49f58308779cb0b798f5e7bc902bbc515c1ec394 Mon Sep 17 00:00:00 2001 +From: Jason Woodward <[email protected]> +Date: Sat, 11 Jun 2011 22:00:59 -0400 +Subject: [PATCH] Fix e500 __fe_nomask_env use of __set_errno w/o CFLAGS-libm + +Since the new _LIBC guard in 96c9a8f7d00cdf6bb7968a2390b9d87da8a45e2d we need +to use CFLAGS-libm (-DNOT_IN_libc -DIS_IN_libm) or we end up with linker +errors like: + + lib/libm.a(fe_nomask.os): In function `__fe_nomask_env': + fe_nomask.c:(.text+0x26): undefined reference to `__libc_errno' + collect2: ld returned 1 exit status + +Signed-off-by: Jason Woodward <[email protected]> +--- + libm/powerpc/e500/fpu/Makefile.arch | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/libm/powerpc/e500/fpu/Makefile.arch b/libm/powerpc/e500/fpu/Makefile.arch +index 904561e..a64843f 100644 +--- a/libm/powerpc/e500/fpu/Makefile.arch ++++ b/libm/powerpc/e500/fpu/Makefile.arch +@@ -11,6 +11,8 @@ libm_ARCH_SRC:=$(wildcard $(libm_ARCH_fpu_DIR)/*.c) + libm_ARCH_OBJ:=$(patsubst $(libm_ARCH_fpu_DIR)/%.c,$(libm_ARCH_fpu_OUT)/%.o,$(libm_ARCH_SRC)) + endif + ++CFLAGS-fe_nomask.c := $(CFLAGS-libm) ++ + libm_ARCH_OBJS:=$(libm_ARCH_OBJ) + + ifeq ($(DOPIC),y) +-- +1.7.0.4 +
toolchain/uClibc/uClibc-0.9.33-linuxthreads-errno-fix.patch new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
1.7.9.3
PATCH 1/1 uClibc 0.9.33 : forward errno bug patches from uClibc 0.9.32
Dear Sagaert Johan,
Quoted 3 lines · Sagaert Johan
Signed-off-by Sagaert Johan <[email protected]>---
I've removed this patch from our patchwork. An updated version had been posted in the mean time, and later reverted because it was causing issues. I would suggest to raise the issue to upstream and get it fixed here if needed, and then backport a proper fix in Buildroot.
Best regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com