diff options
author | Renaud Barbier <renaud.barbier@ge.com> | 2014-01-15 11:47:42 +0000 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-01-16 14:00:30 +0100 |
commit | b2c5a39dfccc8367e83fa02bfd529ce710e2d8a1 (patch) | |
tree | bb84e46b8d5bcc8feb49a2bb3913fc950a6efa98 /arch/ppc/mach-mpc85xx | |
parent | fd0314b47eaffd94cffd45231dba16728685bf9e (diff) | |
download | barebox-b2c5a39dfccc8367e83fa02bfd529ce710e2d8a1.tar.gz barebox-b2c5a39dfccc8367e83fa02bfd529ce710e2d8a1.tar.xz |
ppc: mpc85xx: change bss relocation
The linker script and start up code are updated so that the bss
section is located above the barebox binary in memory. This removes
the reliance on a hard-coded value.
Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/mach-mpc85xx')
-rw-r--r-- | arch/ppc/mach-mpc85xx/barebox.lds.S | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/ppc/mach-mpc85xx/barebox.lds.S b/arch/ppc/mach-mpc85xx/barebox.lds.S index 4d156e8935..980359e3a1 100644 --- a/arch/ppc/mach-mpc85xx/barebox.lds.S +++ b/arch/ppc/mach-mpc85xx/barebox.lds.S @@ -20,7 +20,6 @@ #else #define RESET_VECTOR_ADDRESS 0xfffffffc #endif -#define BSS_START_ADDRESS 0x2000 OUTPUT_ARCH("powerpc") @@ -143,7 +142,11 @@ SECTIONS . = RESET_VECTOR_ADDRESS + 0x4; - . = BSS_START_ADDRESS; +#if (RESET_VECTOR_ADDRESS == 0xfffffffc) + /* This avoids wrapping around to offset 0 */ + . |= 0x10; +#endif + __bss_start = .; .bss : { |