From patchwork Tue Jul 29 11:16:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 374428 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 B18D4140085 for ; Tue, 29 Jul 2014 21:16:22 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B74A18967D; Tue, 29 Jul 2014 11:16:21 +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 jtJbNMMJb-1D; Tue, 29 Jul 2014 11:16:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6CC1F896AC; Tue, 29 Jul 2014 11:16:19 +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 06BCC1BFA58 for ; Tue, 29 Jul 2014 11:16:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 027C58B698 for ; Tue, 29 Jul 2014 11:16:18 +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 w1ThQaAjftze for ; Tue, 29 Jul 2014 11:16:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by whitealder.osuosl.org (Postfix) with ESMTP id 397CB8B834 for ; Tue, 29 Jul 2014 11:16:17 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id A9B5FFBB; Tue, 29 Jul 2014 13:16:22 +0200 (CEST) Received: from localhost (128-79-216-6.hfc.dyn.abo.bbox.fr [128.79.216.6]) by mail.free-electrons.com (Postfix) with ESMTPSA id 72CD9803; Tue, 29 Jul 2014 13:16:22 +0200 (CEST) From: Alexandre Belloni To: buildroot@busybox.net Date: Tue, 29 Jul 2014 13:16:09 +0200 Message-Id: <1406632569-15162-1-git-send-email-alexandre.belloni@free-electrons.com> X-Mailer: git-send-email 1.9.1 Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH] PPC: fix ltrace build on PPC32 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 Add a patch to fix the build on PPC32 platform. That patch has been submitted upstream. Signed-off-by: Alexandre Belloni --- package/ltrace/ltrace-03-PPC-fix-PPC32-build.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 package/ltrace/ltrace-03-PPC-fix-PPC32-build.patch diff --git a/package/ltrace/ltrace-03-PPC-fix-PPC32-build.patch b/package/ltrace/ltrace-03-PPC-fix-PPC32-build.patch new file mode 100644 index 000000000000..92055c94778b --- /dev/null +++ b/package/ltrace/ltrace-03-PPC-fix-PPC32-build.patch @@ -0,0 +1,31 @@ +From c01c6dc017b5ae2b6de7b690725890642b6bf857 Mon Sep 17 00:00:00 2001 +From: Alexandre Belloni +Date: Tue, 29 Jul 2014 11:01:31 +0200 +Subject: [PATCH] PPC: fix PPC32 build + +Compilation on PPC32 fails because STACK_FRAME_OVERHEAD is never defined +in arch.h. + +Define it to 112 on that platform to restore the same behaviour as +before commit eea4ad2cce289753aaa35b4e0258a76d8f8f367c. + +Signed-off-by: Alexandre Belloni +--- + sysdeps/linux-gnu/ppc/arch.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/sysdeps/linux-gnu/ppc/arch.h b/sysdeps/linux-gnu/ppc/arch.h +index 7918a136b016..d5ad759a755c 100644 +--- a/sysdeps/linux-gnu/ppc/arch.h ++++ b/sysdeps/linux-gnu/ppc/arch.h +@@ -57,6 +57,7 @@ + #else + #define BREAKPOINT_VALUE { 0x7f, 0xe0, 0x00, 0x08 } + #define ARCH_ENDIAN_BIG ++# define STACK_FRAME_OVERHEAD 112 + # ifndef EF_PPC64_ABI + # define EF_PPC64_ABI 3 + # endif +-- +1.9.1 +