From dbfef6fb638faff01f786f9f6c1620fd833bde40 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Thu, 15 Nov 2007 21:40:11 +0100 Subject: [sandbox] HACK: add variable _SDA_BASE_ to main, to please linker This patch is a _CRUDE_HACK_ the linker complains about the missing symbol _SDA_BASE_ on powerpc, so git it to him to please him and finally link the sandbx. LD uboot /usr/lib/gcc/powerpc-linux-gnu/4.2.3/../../../../lib/crt1.o:(.rodata+0x0): undefined reference to `_SDA_BASE_' Signed-off-by: Marc Kleine-Budde --- arch/sandbox/lib/common.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/sandbox/lib/common.c b/arch/sandbox/lib/common.c index e8f43177d1..f5e16d2963 100644 --- a/arch/sandbox/lib/common.c +++ b/arch/sandbox/lib/common.c @@ -321,6 +321,11 @@ int main(int argc, char *argv[]) return 0; } +#ifdef __PPC__ +/* HACK: we need this symbol on PPC, better ask a PPC export about this :) */ +char _SDA_BASE_[4096]; +#endif + static void print_usage(const char *prgname) { printf( -- cgit v1.2.3