lkml.org 
[lkml]   [1998]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: __init and string constants
Hi!

> I noticed that init functions use many string constants. The code of
> those functions goes to special section and can be freed after
> initialization. But the strings go to the default .rodata and thus
> cannot be freed. Is it possible to change locally the default section
> for string constants so that the strings can be freed too?
> Or am I mistaken?

You are completely right. But what you are proposing would need some
modifications into gcc. Would be good thing (tm), through. Talk to mj,
he knows how to implement it.
Pavel
--
I'm really pavel@atrey.karlin.mff.cuni.cz. Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.041 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site