diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-11-15 21:40:11 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-11-29 10:22:47 +0100 |
commit | dbfef6fb638faff01f786f9f6c1620fd833bde40 (patch) | |
tree | 580777bc95ece9d2017b16e8c9758da45cda8585 /arch/sandbox/lib | |
parent | ebe11c4f223504d1b2070fcbe75d1fca342ab2fe (diff) | |
download | barebox-dbfef6fb638faff01f786f9f6c1620fd833bde40.tar.gz barebox-dbfef6fb638faff01f786f9f6c1620fd833bde40.tar.xz |
[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 <mkl@pengutronix.de>
Diffstat (limited to 'arch/sandbox/lib')
-rw-r--r-- | arch/sandbox/lib/common.c | 5 |
1 files changed, 5 insertions, 0 deletions
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( |