Re: __init and string constants

Pavel Machek (pavel@elf.ucw.cz)
Fri, 2 Jan 1998 12:19:22 +0100


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/ ;-).