char p;
int main() {
        p = "";
        return 0;
}

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

/*
        .file   "t.c"
        .section        .rodata.str1.1,"aMS",@progbits,1
.LC0:
        .string ""
        .text
.globl main
        .type   main, @function
main:
        pushl   %ebp
        movl    %esp, %ebp
        movl    $.LC0, %eax
        movb    %al, p
        xorl    %eax, %eax
        leave
        ret
        .size   main, .-main
        .comm   p,1,1
        .ident  "GCC: (GNU) 4.1.1"
        .section        .note.GNU-stack,"",@progbits
*/

--
vda

Reply via email to