This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc 4.1.1: char *p = "str" puts "str" into rodata


On 1/28/07, Denis Vlasenko <vda.linux@googlemail.com> wrote:
char p;
int main() {
        p = "";
        return 0;
}

Don't you think that "" should end up in rw data?

Why? It's not writable after all.


Richard.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]