summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-11-15 08:16:19 -0500
committerMike Frysinger <vapier@gentoo.org>2010-11-18 04:38:19 -0500
commit49508d4c591fd2c462cb3707541add0fee921ed4 (patch)
tree8db6231d4c3e419b97685cf3ffec17425f23fd48 /arch
parentcd97dd4f2c80900a295ec1b7fc6c789b94455c4e (diff)
downloadu-boot-imx-49508d4c591fd2c462cb3707541add0fee921ed4.zip
u-boot-imx-49508d4c591fd2c462cb3707541add0fee921ed4.tar.gz
u-boot-imx-49508d4c591fd2c462cb3707541add0fee921ed4.tar.bz2
Blackfin: make sure bss len is multiple of 4 bytes
The Blackfin on-chip BootROM requires that fill operations (which is used for the bss) be aligned to 4 bytes (base addr and total len). Plus, the Blackfin early init asm code assumes the same thing. So rather than making things work for no real gain, make sure the bss len is padded to 4 bytes in the linker script. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/blackfin/lib/u-boot.lds.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/blackfin/lib/u-boot.lds.S b/arch/blackfin/lib/u-boot.lds.S
index 9163d20..f15c97e 100644
--- a/arch/blackfin/lib/u-boot.lds.S
+++ b/arch/blackfin/lib/u-boot.lds.S
@@ -147,6 +147,7 @@ SECTIONS
*(.dynbss)
*(.bss .bss.*)
*(COMMON)
+ . = ALIGN(4);
} >ram_data
__bss_vma = ADDR(.bss);
__bss_len = SIZEOF(.bss);