]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
x86: Add Xen kexec control code size check to linker script
authorDaniel Kiper <daniel.kiper@oracle.com>
Thu, 21 Jun 2012 13:39:19 +0000 (15:39 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 28 Jun 2012 07:54:20 +0000 (09:54 +0200)
Add Xen kexec control code size check to linker script.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
arch/x86/kernel/vmlinux.lds.S

index 89aed99aafceb3b8ce1df591a77f619418166273..ee9d15265b3941d587330c90827d5bf6b0f51953 100644 (file)
@@ -404,5 +404,10 @@ INIT_PER_CPU(irq_stack_union);
 
 . = ASSERT(kexec_control_code_size <= KEXEC_CONTROL_CODE_MAX_SIZE,
            "kexec control code size is too big");
-#endif
 
+#ifdef CONFIG_XEN
+. = ASSERT(xen_kexec_control_code_size - xen_relocate_kernel <=
+               KEXEC_CONTROL_CODE_MAX_SIZE,
+               "Xen kexec control code size is too big");
+#endif
+#endif