This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26702] Size of static variables always zero on arm-elf
- From: "sjackman at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2006 20:10:55 -0000
- Subject: [Bug target/26702] Size of static variables always zero on arm-elf
- References: <bug-26702-11470@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from sjackman at gmail dot com 2006-03-15 20:10 -------
Subject: Re: Size of static variables always zero on arm-elf
GCC is not emitting the type or size information for static bss symbols.
-- sdj
$ echo 'static int foo = 1;' >foo.c
$ arm-elf-gcc -S foo.c -odata.s
$ echo 'static int foo;' >foo.c
$ arm-elf-gcc -S foo.c -obss.s
$ diff -u data.s bss.s
--- data.s 2006-03-15 13:08:17.000000000 -0700
+++ bss.s 2006-03-15 13:08:17.000000000 -0700
@@ -1,8 +1,6 @@
.file "foo.c"
- .data
+ .bss
.align 2
- .type foo, %object
- .size foo, 4
foo:
- .word 1
+ .space 4
.ident "GCC: (GNU) 4.1.0"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26702