This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Auto-generated .rodata contents and __attribute__((section))
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Julius Werner <jwerner at chromium dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 15 May 2018 12:06:32 -0500
- Subject: Re: Auto-generated .rodata contents and __attribute__((section))
- References: <CAODwPW-7p9defcpNB9cUPJ6MAMhJFvED7Mp1mHcxf=x+jLQ2VQ@mail.gmail.com>
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