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?
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?