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?

Unfortunately, with current GCC it's impossible. I was working on a patch
for EGCS adding this feature, but I didn't have enough time to finish it yet.

Have a nice fortnight
--
Martin `MJ' Mares <mj@gts.cz> http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"First law of socio-genetics: Celibacy is not hereditary."

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