Browse Source

h8300: zImage alignment fix

Missing alignment for .data section.
Sometime bootup failed.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato 10 years ago
parent
commit
af3da5798d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      arch/h8300/boot/compressed/vmlinux.lds

+ 2 - 1
arch/h8300/boot/compressed/vmlinux.lds

@@ -13,6 +13,7 @@ SECTIONS
 	{
 	{
 		*(.rodata)
 		*(.rodata)
 	}
 	}
+        . = ALIGN(0x4) ;
         .data :
         .data :
 
 
         {
         {
@@ -21,9 +22,9 @@ SECTIONS
         ___data_start = . ;
         ___data_start = . ;
                 *(.data.*)
                 *(.data.*)
 	}
 	}
+        . = ALIGN(0x4) ;
         .bss :
         .bss :
         {
         {
-        . = ALIGN(0x4) ;
         __sbss = . ;
         __sbss = . ;
                 *(.bss*)
                 *(.bss*)
         . = ALIGN(0x4) ;
         . = ALIGN(0x4) ;