Re: String literals in __init functions

From: Joseph Myers
Date: Thu Apr 02 2015 - 12:00:46 EST

On Thu, 26 Mar 2015, Joe Perches wrote:

> > I'd have thought that a function-wide
> > __attribute__((__string_section__(foo))
> > wouldn't be a ton of work to implement.
> Maybe not.
> Could some future version of gcc move string constants
> in a function to a specific section marked in a manner
> similar to what Andrew described above?

Putting string constants in a special section is an old project idea at
I still think support for that would make sense.

Joseph S. Myers
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at