On Mon, Dec 11, Olaf Hering wrote: > On Mon, Dec 11, Linus Torvalds wrote: > > > +static char __initdata linux_banner[] = > > + "Linux version " UTS_RELEASE > > + " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")" > > + " (" LINUX_COMPILER ")" > > + " " UTS_VERSION "\n"; > > main.o gets linked after misc.o, so this will not work. Having both as > globals in the same c file in the right order, that will probably fix > it. Let my try.
Hmm, even moving this to linux_banner doesnt work, just because __initdata is in a different section. Only 'const char static_linux_banner' works. Maybe the guy who did it back in Summer 2000 should have asked for a standard?! +++ linux-2.6/init/version.c @@ -34,6 +34,13 @@ struct uts_namespace init_uts_ns = { }; EXPORT_SYMBOL_GPL(init_uts_ns); +/* keep this static string before linux_banner */ +char __initdata static_linux_banner[] = + "Linux version " UTS_RELEASE + " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")" + " (" LINUX_COMPILER ")" + " " UTS_VERSION "\n"; + const char linux_banner[] = "Linux version %s (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") %s\n"; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/