ChangeSet 1.2181.1.12, 2005/03/30 14:24:57+01:00, [EMAIL PROTECTED](none)

        [ARM PATCH] 2634/1: prevent the lack of any CPU and/or machine record 
at link time
        
        Patch from Nicolas Pitre
        
        Without this, someone could successfully link a kernel with, for
        example, no machine description structure at all.
        
        Signed-off-by: Nicolas Pitre
        Signed-off-by: Russell King



 vmlinux.lds.S |    4 ++++
 1 files changed, 4 insertions(+)


diff -Nru a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
--- a/arch/arm/kernel/vmlinux.lds.S     2005-03-30 16:23:19 -08:00
+++ b/arch/arm/kernel/vmlinux.lds.S     2005-03-30 16:23:19 -08:00
@@ -160,3 +160,7 @@
        .stab.indexstr 0 : { *(.stab.indexstr) }
        .comment 0 : { *(.comment) }
 }
+
+/* those must never be empty */
+ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
+ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to