lkml.org 
[lkml]   [1998]   [Jan]   [4]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 2 Jan 1998 10:16:42 +0100
FromMartin von Loewis <>
SubjectRe: __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

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.226 / U:0.020 seconds]
©2003-2008 Jasper Spaans