From patchwork Wed Feb 20 17:55:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagaert Johan X-Patchwork-Id: 222133 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id A41C62C0077 for ; Thu, 21 Feb 2013 04:56:59 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2D297A01ED; Wed, 20 Feb 2013 17:57:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0flqHpMzKOAm; Wed, 20 Feb 2013 17:56:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 3A6C9A01FF; Wed, 20 Feb 2013 17:56:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 988348F74B for ; Wed, 20 Feb 2013 17:56:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0A37E8C95A for ; Wed, 20 Feb 2013 17:56:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bJlU0frLVObg for ; Wed, 20 Feb 2013 17:56:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailrelay002.isp.belgacom.be (mailrelay002.isp.belgacom.be [195.238.6.175]) by whitealder.osuosl.org (Postfix) with ESMTP id 3903B8C9A8 for ; Wed, 20 Feb 2013 17:56:33 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAKENJVFR8Spf/2dsb2JhbABFwFyBARdzgh8BXCMsAwECHUsWIYgWwE6PAwsdgyoDliyQW4MI Received: from 95.42-241-81.adsl-dyn.isp.belgacom.be (HELO debian605.apex) ([81.241.42.95]) by relay.skynet.be with ESMTP; 20 Feb 2013 18:56:32 +0100 From: Sagaert Johan To: buildroot@busybox.net Date: Wed, 20 Feb 2013 18:55:13 +0100 Message-Id: <1361382913-25236-1-git-send-email-sagaert.johan@skynet.be> X-Mailer: git-send-email 1.8.1.2 Cc: Sagaert Johan Subject: [Buildroot] [PATCH 1/1] forward a patch (powerpc) from uClibc 0.9.32.1 to 0.9.33.2 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Forward the uClibc-0.9.32.1-Fix-e500-__fe_nomask_env-use-of-__set_errno.patch to uClibc 0.9.33.2 (Original from Jason Woodward.) Signed-off-by: Sagaert Johan --- ...x-e500-__fe_nomask_env-use-of-__set_errno.patch | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 toolchain/uClibc/uClibc-0.9.33.2-Fix-e500-__fe_nomask_env-use-of-__set_errno.patch diff --git a/toolchain/uClibc/uClibc-0.9.33.2-Fix-e500-__fe_nomask_env-use-of-__set_errno.patch b/toolchain/uClibc/uClibc-0.9.33.2-Fix-e500-__fe_nomask_env-use-of-__set_errno.patch new file mode 100644 index 0000000..1908925 --- /dev/null +++ b/toolchain/uClibc/uClibc-0.9.33.2-Fix-e500-__fe_nomask_env-use-of-__set_errno.patch @@ -0,0 +1,34 @@ +>From 49f58308779cb0b798f5e7bc902bbc515c1ec394 Mon Sep 17 00:00:00 2001 +From: Jason Woodward +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 +--- + 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 +