From c71551ad309c46d9d2433a9b688491edbd10c806 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 11 Jan 2007 18:18:04 -0800 Subject: Don't put "linux_banner" in the .init section It might save a few bytes after bootup, but it causes the string to be linked in at the end of the final vmlinux image, which defeats the whole point of doing all this, namely allowing some broken user-space binaries to search for the kernel version string in the kernel binary. So just remove the __init specifier. Cc: Olaf Hering Cc: Jean Delvare Cc: Roman Zippel Cc: Andrey Borzenkov Cc: Andrew Morton Acked-by: Andy Whitcroft Signed-off-by: Linus Torvalds --- init/version.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init/version.c') diff --git a/init/version.c b/init/version.c index 55abe76f4ec9..6c01ec1cc48d 100644 --- a/init/version.c +++ b/init/version.c @@ -34,8 +34,8 @@ struct uts_namespace init_uts_ns = { }; EXPORT_SYMBOL_GPL(init_uts_ns); -/* FIXED STRING! Don't touch! */ -const char __init linux_banner[] = +/* FIXED STRINGS! Don't touch! */ +const char linux_banner[] = "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n"; -- cgit v1.2.3