From: Andi Kleen <[email protected]>

Signed-off-by: Tom Zanussi <[email protected]>
---
 arch/x86/kernel/vmlinux.lds.S | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S
index 74e4bf1..5e5f39a 100644
--- a/arch/x86/kernel/vmlinux.lds.S
+++ b/arch/x86/kernel/vmlinux.lds.S
@@ -367,7 +367,9 @@ INIT_PER_CPU(irq_stack_union);
 #ifdef CONFIG_KEXEC_CORE
 #include <asm/kexec.h>
 
+#ifndef CONFIG_LTO
 . = ASSERT(kexec_control_code_size <= KEXEC_CONTROL_CODE_MAX_SIZE,
            "kexec control code size is too big");
 #endif
+#endif
 
-- 
2.6.6

-- 
_______________________________________________
linux-yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to