[Bug middle-end/25522] zero-initialized constants are place in .bss
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 21 19:11:00 GMT 2005
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-12-21 19:11 -------
If you really zero initialize them, you get them in the what you expect:
.section .rodata
.align 4
.type f, @object
.size f, 8
f:
.zero 8
-----
Removing the const gets them placed into .bss though (which is correct):
.file "t.c"
.globl f
.bss
.align 4
.type f, @object
.size f, 8
f:
.zero 8
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25522
More information about the Gcc-bugs
mailing list