[IA64] alignment bug in ldscript
authorKirill Korotaev <dev@openvz.org>
Tue, 6 Feb 2007 00:19:59 +0000 (16:19 -0800)
committerTony Luck <tony.luck@intel.com>
Tue, 6 Feb 2007 00:45:42 +0000 (16:45 -0800)
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.

Signed-off-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-off-by: Kirill Korotaev <dev@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/vmlinux.lds.S

index d6083a0936f4e2e3ddd2c425e41ef0afc33ecb97..8f3d0066f4468cffbb980ce04e091ea48c4b6106 100644 (file)
@@ -157,6 +157,7 @@ SECTIONS
        }
 #endif
 
+  . = ALIGN(8);
    __con_initcall_start = .;
   .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
        { *(.con_initcall.init) }