浏览代码

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>
Mike Frysinger 14 年之前
父节点
当前提交
49508d4c59
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/blackfin/lib/u-boot.lds.S

+ 1 - 0
arch/blackfin/lib/u-boot.lds.S

@@ -147,6 +147,7 @@ SECTIONS
 		*(.dynbss)
 		*(.dynbss)
 		*(.bss .bss.*)
 		*(.bss .bss.*)
 		*(COMMON)
 		*(COMMON)
+		. = ALIGN(4);
 	} >ram_data
 	} >ram_data
 	__bss_vma = ADDR(.bss);
 	__bss_vma = ADDR(.bss);
 	__bss_len = SIZEOF(.bss);
 	__bss_len = SIZEOF(.bss);