Auto-generated .rodata contents and __attribute__((section))

Segher Boessenkool segher@kernel.crashing.org
Tue May 15 17:06:00 GMT 2018


On Mon, May 14, 2018 at 04:38:09PM -0700, Julius Werner wrote:
> However, I just found an issue with this when the functions include local
> variables like this:
> 
>   const int some_array[] = { 1, 2, 3, 4, 5, 6 };

Does it work better if you make this "static const"?


Segher



More information about the Gcc mailing list