![]() | ||||||||||
Messages in this thread |
Hi, > > static char mystring[] __initdata = "That string"; > > That's what my patch does... :) > > > but that's ugly and not usable. People usually want their strings to sit in > > the code where they are used... > > I agree that it's ugly. But I just don't want to waste my kernel memory > with a lot of startup messages for networking, kswapd, cpu checking and > especially not with "hidden" startup error messages (look in the aha1542.c > part, for example)... I think that this is a GCC problem, so it should be fixed in GCC, not by obfuscating the kernel code. I have some ideas about how to make EGCS understand some function attribute setting default section for read-only data (including strings), but I still didn't have time to write a patch (I hope I'll have soon). Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth "Compatible: Gracefully accepts erroneous data from any source." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu | |||||||||
| Last update: 2005-03-22 12:41 [from the cache] ©2003-2008 | ||||||||||