Re: [RFC] __initdata strings

From: Arnaldo Carvalho de Melo
Date: Sun Oct 10 2004 - 11:39:07 EST




Matt Mackall wrote:
On Sun, Oct 10, 2004 at 07:28:29PM +0400, Oleg Nesterov wrote:

Hello.

This patch is not intended for inclusion, just for illustration.

__init functions leaves strings (mainly printk's arguments) in
.data section. It make sense to move them in .init.data.


Probably better to do this with something like objcopy?


Yes, this is another way of doing that, but the kernel has to be
prepared to get such treatment, think about register functions
that only save a pointer to strings passed from __init functions...

Ah, nothing related to this specific way of doing what is intended,
any scheme that moves strings in __init functions to .data.init has
to deal with this.

- Arnaldo



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/