OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] IA64: alignment bug in ldscript
[PATCH] IA64: alignment bug in ldscript [message #9106] Mon, 18 December 2006 11:55 Go to next message
Kirill Korotaev is currently offline  Kirill Korotaev
Messages: 137
Registered: January 2006
Senior Member
[IA64] bug in ldscript (mainstream)

Occasionally, in mainstream number of fsys entries is even.
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>

diff -urp ../linux-2.6.18-vz/arch/ia64/kernel/vmlinux.lds.S linux-2.6.18-vz/arch/ia64/kernel/vmlinux.lds.S
--- ../linux-2.6.18-vz/arch/ia64/kernel/vmlinux.lds.S 2006-12-08 13:34:19.000000000 +0300
+++ linux-2.6.18-vz/arch/ia64/kernel/vmlinux.lds.S 2006-12-13 02:51:03.000000000 +0300
@@ -163,6 +163,7 @@ SECTIONS
}
#endif

+ . = ALIGN(8);
__con_initcall_start = .;
.con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
{ *(.con_initcall.init) }
RE: [PATCH] IA64: alignment bug in ldscript [message #9113 is a reply to message #9106] Mon, 18 December 2006 19:23 Go to previous message
kenneth.w.chen is currently offline  kenneth.w.chen
Messages: 4
Registered: December 2006
Junior Member
Kirill Korotaev wrote on Monday, December 18, 2006 4:05 AM
> [IA64] bug in ldscript (mainstream)
>
> Occasionally, in mainstream number of fsys entries is even.

Is it a typo on "fsys entries is even"?

If not, then this change log is misleading. It is the instruction
patch list of FSYS_RETURN that can potentially cause other data
structures to be out of alignment. And number of FSYS_RETURN call
site will not necessarily match number of fsys entry.


> In OpenVZ it is odd and we get misaligned kernel image,
> which does not boot.

Otherwise, the patch looks fine to me.
Previous Topic: [PATCH] IA64: virt_to_page() can be called with NULL arg
Next Topic: Re: [patch 1/2] net namespace : Add broadcasting
Goto Forum:
  


Current Time: Tue Jul 29 16:37:46 GMT 2025

Total time taken to generate the page: 0.08851 seconds