ppc: const data not in RO section

Joakim Tjernlund joakim.tjernlund@transmode.se
Tue Nov 30 20:40:00 GMT 2010


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 have to specify that?




More information about the Gcc mailing list