92055c94778b89f154e4e547926f4aba50e6224a
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / ltrace / 0003-PPC-fix-PPC32-build.patch
1 From c01c6dc017b5ae2b6de7b690725890642b6bf857 Mon Sep 17 00:00:00 2001
2 From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
3 Date: Tue, 29 Jul 2014 11:01:31 +0200
4 Subject: [PATCH] PPC: fix PPC32 build
5
6 Compilation on PPC32 fails because STACK_FRAME_OVERHEAD is never defined
7 in arch.h.
8
9 Define it to 112 on that platform to restore the same behaviour as
10 before commit eea4ad2cce289753aaa35b4e0258a76d8f8f367c.
11
12 Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
13 ---
14  sysdeps/linux-gnu/ppc/arch.h | 1 +
15  1 file changed, 1 insertion(+)
16
17 diff --git a/sysdeps/linux-gnu/ppc/arch.h b/sysdeps/linux-gnu/ppc/arch.h
18 index 7918a136b016..d5ad759a755c 100644
19 --- a/sysdeps/linux-gnu/ppc/arch.h
20 +++ b/sysdeps/linux-gnu/ppc/arch.h
21 @@ -57,6 +57,7 @@
22  #else
23  #define BREAKPOINT_VALUE { 0x7f, 0xe0, 0x00, 0x08 }
24  #define ARCH_ENDIAN_BIG
25 +# define STACK_FRAME_OVERHEAD 112
26  # ifndef EF_PPC64_ABI
27  # define EF_PPC64_ABI 3
28  # endif
29 -- 
30 1.9.1
31