Jelajahi Sumber

h8300: zImage alignment fix

Missing alignment for .data section.
Sometime bootup failed.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato 9 tahun lalu
induk
melakukan
af3da5798d
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      arch/h8300/boot/compressed/vmlinux.lds

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

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