--- 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 '
--- Comment #7 from pinskia at gcc dot gnu dot org 2006-03-15 20:02 ---
Ok, this is a GCC bug for not outputing .size.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26702
--- Comment #6 from sjackman at gmail dot com 2006-03-15 20:01 ---
Subject: Re: Size of static variables always zero on arm-elf
On 15 Mar 2006 19:07:12 -, pinskia at gcc dot gnu dot org > Can
you try one more thing:
> static int static_foo = 1;
>
> And then use readelf -s on the ob
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-03-15 19:07 ---
Can you try one more thing:
static int static_foo = 1;
And then use readelf -s on the object file?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26702
--- Comment #4 from sjackman at gmail dot com 2006-03-15 19:03 ---
Subject: Re: Size of static variables always zero on arm-elf
On 15 Mar 2006 18:53:53 -, pinskia at gcc dot gnu dot org
<[EMAIL PROTECTED]> wrote:
> No I mean what is the assembly output from GCC which you get by inv
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-03-15 18:53 ---
No I mean what is the assembly output from GCC which you get by invoking gcc
with -S.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26702
--- 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 -, pinskia at gcc dot gnu dot org
<[EMAIL PROTECTED]> wrote:
> What does the output of -S show? I bet it is just putting static_f
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-15 18:38 ---
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.
--
pinskia at gcc dot gnu dot org changed:
What|Remov