Thread (1 message) 1 message, 1 author, 2011-06-13

Re: [PATCH 1/3] ARM: zImage: ensure it is always a multiple of 64 bits in size

From: Russell King - ARM Linux <hidden>
Date: 2011-06-13 11:24:54
Also in: linux-arm-kernel

On Sun, Jun 12, 2011 at 02:06:38AM -0400, Nicolas Pitre wrote:
quoted hunk
diff --git a/arch/arm/boot/compressed/vmlinux.lds.in b/arch/arm/boot/compressed/vmlinux.lds.in
index ea80abe..6c02db1 100644
--- a/arch/arm/boot/compressed/vmlinux.lds.in
+++ b/arch/arm/boot/compressed/vmlinux.lds.in
@@ -47,6 +47,9 @@ SECTIONS
   .got			: { *(.got) }
   _got_end = .;
   .got.plt		: { *(.got.plt) }
+
+  /* ensure the zImage file size is always a multiple of 64 bits */
+  .pad			: { BYTE(0); . = ALIGN(8); }
Why add a byte before aligning?  Isn't merely aligning to 64-bit sufficient?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help