Nathan Froyd wrote on 2010/12/01 18:33:23:
>
> On Tue, Nov 30, 2010 at 08:04:06PM +0100, Joakim Tjernlund wrote:
> > Why is not
> > const char cstr[] = "mystr";
> > const int myint = 3;
> > added to a read only section?
> > Especially since
> > const int myarr[]={1,2,3};
> > is placed in .ro
Nathan Froyd wrote on 2010/12/01 18:33:23:
>
> On Tue, Nov 30, 2010 at 08:04:06PM +0100, Joakim Tjernlund wrote:
> > Why is not
> > const char cstr[] = "mystr";
> > const int myint = 3;
> > added to a read only section?
> > Especially since
> > const int myarr[]={1,2,3};
> > is placed in .ro
On Tue, Nov 30, 2010 at 08:04:06PM +0100, Joakim Tjernlund wrote:
> Why is not
> const char cstr[] = "mystr";
> const int myint = 3;
> added to a read only section?
> Especially since
> const int myarr[]={1,2,3};
> is placed in .rodata.
>
> hmm, -G 0 does place these in .rodata but why do I