On Fri, May 08, 2009 at 05:44:09PM +0200, Peter Oberparleiter wrote:From: Peter Oberparleiter <oberpar@xxxxxxxxxxxxxxxxxx>
Index: linux-2.6.30-rc4/init/main.c
===================================================================
--- linux-2.6.30-rc4.orig/init/main.c
+++ linux-2.6.30-rc4/init/main.c
@@ -700,6 +700,18 @@ asmlinkage void __init start_kernel(void
rest_init();
}
+/* Call all constructor functions linked into the kernel. */
+static void __init do_ctors(void)
+{
+#ifdef CONFIG_CONSTRUCTORS
+ extern ctor_fn_t __ctors_start[], __ctors_end[];
I would like these to be globally decleared, since they are.