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 18:51:29 -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 #2 from sjackman at gmail dot com 2006-03-15 18:51 -------
Subject: Re: Size of static variables always zero on arm-elf
On 15 Mar 2006 18:38:46 -0000, pinskia at gcc dot gnu dot org
<gcc-bugzilla@gcc.gnu.org> wrote:
> What does the output of -S show? I bet it is just putting static_foo in a BSS
> using lcomm but I could be wrong. This might not be a gcc bug.
$ arm-elf-readelf -S foo.o
There are 8 section headers, starting at offset 0x7c:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf
Al
[ 0] NULL 00000000 000000 000000 00 0 0
0
[ 1] .text PROGBITS 00000000 000034 000000 00 AX 0 0
1
[ 2] .data PROGBITS 00000000 000034 000000 00 WA 0 0
1
[ 3] .bss NOBITS 00000000 000034 000004 00 WA 0 0
4
[ 4] .comment PROGBITS 00000000 000034 000012 00 0 0
1
[ 5] .shstrtab STRTAB 00000000 000046 000035 00 0 0
1
[ 6] .symtab SYMTAB 00000000 0001bc 000090 10 7 8
4
[ 7] .strtab STRTAB 00000000 00024c 000019 00 0 0
1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26702