瀏覽代碼

ARM: zImage: ensure it is always a multiple of 64 bits in size

This is needed for proper alignment when the DTB appending feature
is used.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Nicolas Pitre 14 年之前
父節點
當前提交
72bf0bce41
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/arm/boot/compressed/vmlinux.lds.in

+ 4 - 0
arch/arm/boot/compressed/vmlinux.lds.in

@@ -51,6 +51,10 @@ SECTIONS
   _got_start = .;
   _got_start = .;
   .got			: { *(.got) }
   .got			: { *(.got) }
   _got_end = .;
   _got_end = .;
+
+  /* ensure the zImage file size is always a multiple of 64 bits */
+  /* (without a dummy byte, ld just ignores the empty section) */
+  .pad			: { BYTE(0); . = ALIGN(8); }
   _edata = .;
   _edata = .;
 
 
   . = BSS_START;
   . = BSS_START;