On Tue, 2014-06-24 at 23:06 +0200, Mathias Krause wrote: > On 24 June 2014 22:57, Joe Perches <j...@perches.com> wrote: > > On Tue, 2014-06-24 at 22:41 +0200, Mathias Krause wrote: > >> And all of those strings should be in the .rodata section, now. But > >> why you're asking? > > Because now they will be duplicated in .rodata > > and the __init section no? > No. A string marked with __init_str() will only life in the > .init.rodata section. No duplication.
Unless the same string is used in another bit of code. Then there's duplication. > Having duplicated strings in .rodata and .init.rodata is also no > problem as the latter will be freed. They increase image size. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/