From dc06bca86d039d2a032b1a34eba77b23356bfcbf Mon Sep 17 00:00:00 2001 From: Daniel Kiper Date: Thu, 21 Jun 2012 15:39:19 +0200 Subject: [PATCH] x86: Add Xen kexec control code size check to linker script Add Xen kexec control code size check to linker script. Signed-off-by: Daniel Kiper --- arch/x86/kernel/vmlinux.lds.S | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index 89aed99aafce..ee9d15265b39 100644 --- a/arch/x86/kernel/vmlinux.lds.S +++ b/arch/x86/kernel/vmlinux.lds.S @@ -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 -- 2.50.1