Skip to contentSkip to conversation

IA64: alignment bug in ldscript

PATCH Applied [email protected] 1 participant 1 message Feb 6, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/13 IA64: alignment bug in ldscript

From: Kirill Korotaev <[email protected]>

Occasionally the FSYS_RETURN patch list can have an odd length, causing other data structures to get out of alignment. In OpenVZ it is odd and we get misaligned kernel image, which does not boot.

---

 arch/ia64/kernel/vmlinux.lds.S |    1 +
 1 file changed, 1 insertion(+)
arch/ia64/kernel/vmlinux.lds.S renamed from arch/ia64/kernel/vmlinux.lds.S~ia64-alignment-bug-in-ldscript +1 -0
diff -puN arch/ia64/kernel/vmlinux.lds.S~ia64-alignment-bug-in-ldscript arch/ia64/kernel/vmlinux.lds.S
@@ -157,6 +157,7 @@ SECTIONS
 	}
 #endif
 
+  . = ALIGN(8);
    __con_initcall_start = .;
   .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
 	{ *(.con_initcall.init) }

_