Re: PATCH: move more functions and data into init memory (2.1.89)

Jakub Jelinek (jj@sunsite.ms.mff.cuni.cz)
Wed, 11 Mar 1998 11:00:58 +0100 (MET)


> I am not so sure about the best method getting init strings into the
> initdata segment. I haven't found a clean method like
>
> "foobar" __initdata

There is none, unless you do:

static char mystring[] __initdata = "That string";

but that's ugly and not usable. People usually want their strings to sit in
the code where they are used...
Martin Mares said he'll be looking into egcs to add support for something
like that (so that all strings from some function with some special
attribute would go to a special section). There is a lot of other things to
do in this area, e.g. if gcc optimizes away some part of code which has the
only occurence of some string, it does not have to be in the resulting
binary at all...

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.1.89 on a sparc64 machine (498.80 BogoMips).
___________________________________________________________________

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu