diff mbox

PPC: fix ltrace build on PPC32

Message ID 1406632569-15162-1-git-send-email-alexandre.belloni@free-electrons.com
State Accepted
Headers show

Commit Message

Alexandre Belloni July 29, 2014, 11:16 a.m. UTC
Add a patch to fix the build on PPC32 platform. That patch has been
submitted upstream.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 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

Comments

Thomas Petazzoni July 29, 2014, 11:26 a.m. UTC | #1
Dear Alexandre Belloni,

On Tue, 29 Jul 2014 13:16:09 +0200, Alexandre Belloni wrote:
> Add a patch to fix the build on PPC32 platform. That patch has been
> submitted upstream.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> ---
>  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

Thanks, applied. I've added a reference to the appropriate autobuilder
failure. Please make sure to include such a reference next time you
submit a patch fixing an issue raised by the autobuilders.

Thanks! :-)

Thomas
diff mbox

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 <alexandre.belloni@free-electrons.com>
+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 <alexandre.belloni@free-electrons.com>
+---
+ 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
+