lkml.org 
[lkml]   [1998]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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 13:41    [W:0.043 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site