From patchwork Tue Jul 23 16:28:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mischa Jonker X-Patchwork-Id: 261146 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id DFE672C00D2 for ; Wed, 24 Jul 2013 02:28:21 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 262088C0AD; Tue, 23 Jul 2013 16:28:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PA0las8_F3hH; Tue, 23 Jul 2013 16:28:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3275E8BFC8; Tue, 23 Jul 2013 16:28:17 +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 C6C8C1BF868 for ; Tue, 23 Jul 2013 16:28:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D21308A7D4 for ; Tue, 23 Jul 2013 16:28:16 +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 7YEEplhrGLcx for ; Tue, 23 Jul 2013 16:28:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from hermes.synopsys.com (hermes.synopsys.com [198.182.44.81]) by whitealder.osuosl.org (Postfix) with ESMTP id BA5F887ABB for ; Tue, 23 Jul 2013 16:28:15 +0000 (UTC) Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by hermes.synopsys.com (Postfix) with ESMTP id 1148ACBD3 for ; Tue, 23 Jul 2013 09:28:15 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 04B7CDE3; Tue, 23 Jul 2013 09:28:15 -0700 (PDT) Received: from mischa-VirtualBox.internal.synopsys.com (mjonker-e6530.internal.synopsys.com [10.100.24.25]) by mailhost.synopsys.com (Postfix) with ESMTP id 3F619DDF; Tue, 23 Jul 2013 09:28:14 -0700 (PDT) From: Mischa Jonker To: buildroot@busybox.net Date: Tue, 23 Jul 2013 18:28:08 +0200 Message-Id: <1374596888-25427-1-git-send-email-mjonker@synopsys.com> X-Mailer: git-send-email 1.7.9.5 Cc: Mischa Jonker Subject: [Buildroot] [PATCH] uclibc: arc: fix fstat for big-endian 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 Fixes "Value too large for defined data type" messages caused by fstat syscall wrapper returning -EOVERFLOW. Signed-off-by: Mischa Jonker --- package/uclibc/0.9.33-arc/fix-fstat-for-be.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/uclibc/0.9.33-arc/fix-fstat-for-be.patch diff --git a/package/uclibc/0.9.33-arc/fix-fstat-for-be.patch b/package/uclibc/0.9.33-arc/fix-fstat-for-be.patch new file mode 100644 index 0000000..2cdb517 --- /dev/null +++ b/package/uclibc/0.9.33-arc/fix-fstat-for-be.patch @@ -0,0 +1,32 @@ +From f394d65c74631a0e715bac582b09c302ee84114f Mon Sep 17 00:00:00 2001 +From: Mischa Jonker +Date: Tue, 23 Jul 2013 17:59:04 +0200 +Subject: [PATCH] libc/sysdeps: Fix common-generic stat.h for BE part 2 + +Previous patch only fixed the build. This patch fixes the behavior at +run-time as well. + +It fixes "Value too large for defined data type" messages caused by +fstat syscall wrapper returning -EOVERFLOW. + +Signed-off-by: Mischa Jonker +--- + libc/sysdeps/linux/common-generic/bits/stat.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libc/sysdeps/linux/common-generic/bits/stat.h b/libc/sysdeps/linux/common-generic/bits/stat.h +index 07716ab..945c408 100644 +--- a/libc/sysdeps/linux/common-generic/bits/stat.h ++++ b/libc/sysdeps/linux/common-generic/bits/stat.h +@@ -63,8 +63,8 @@ struct stat + unsigned long long __pad4; + long __pad5; + long st_size; /* Size of file, in bytes. */ +- int __pad6; + int st_blksize; /* Optimal block size for I/O. */ ++ int __pad6; + long __pad7; + long st_blocks; /* Number 512-byte blocks allocated */ + # endif /* __LITTLE_ENDIAN */ +-- +1.7.9.5