Messages in this thread | | | Date | Fri, 2 Jan 1998 10:16:42 +0100 | From | Martin von Loewis <> | Subject | Re: __init and string constants |
| |
> Is it possible to change locally the default section > for string constants so that the strings can be freed too?
You can change the section for individual variables, like
const char foo[] __attribute__((section(".foo")))="Hallo\n";
I don't think you can change the section for a string literal appearing somewhere. I also don't think you can change the default section for string literals in a compilation unit, except for -fwritable-strings.
Regards, Martin
| |