public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26702]  New: Size of static variables always zero on arm-elf
@ 2006-03-15 18:30 sjackman at gmail dot com
  2006-03-15 18:38 ` [Bug target/26702] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: sjackman at gmail dot com @ 2006-03-15 18:30 UTC (permalink / raw)
  To: gcc-bugs

When an object file is compiled by arm-elf-gcc 4.1.0, nm -S 2.16.*
always shows zero as the size of a static variable.

Thanks,
Shaun

$ cat foo.c
int foo;
static int static_foo;
$ arm-elf-gcc -c foo.c
$ arm-elf-readelf -s foo.o | grep foo
     1: 00000000     0 FILE    LOCAL  DEFAULT  ABS foo.c
     6: 00000000     0 NOTYPE  LOCAL  DEFAULT    3 static_foo
     8: 00000004     4 OBJECT  GLOBAL DEFAULT  COM foo
$ gcc -c foo.c
$ readelf -s foo.o | grep foo
     1: 00000000     0 FILE    LOCAL  DEFAULT  ABS foo.c
     5: 00000000     4 OBJECT  LOCAL  DEFAULT    3 static_foo
     8: 00000004     4 OBJECT  GLOBAL DEFAULT  COM foo
$ arm-elf-gcc --version | head -1
arm-elf-gcc (GCC) 4.1.0
$ arm-elf-readelf --version | head -1
GNU readelf 2.16.91 20060309
$ gcc --version | head -1
gcc (GCC) 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)
$ readelf --version | head -1
GNU readelf 2.16.91-multiarch 20060118 Debian GNU/Linux


-- 
           Summary: Size of static variables always zero on arm-elf
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sjackman at gmail dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26702


^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <bug-26702-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2015-05-21  9:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-15 18:30 [Bug c/26702] New: Size of static variables always zero on arm-elf sjackman at gmail dot com
2006-03-15 18:38 ` [Bug target/26702] " pinskia at gcc dot gnu dot org
2006-03-15 18:51 ` sjackman at gmail dot com
2006-03-15 18:53 ` pinskia at gcc dot gnu dot org
2006-03-15 19:03 ` sjackman at gmail dot com
2006-03-15 19:07 ` pinskia at gcc dot gnu dot org
2006-03-15 20:01 ` sjackman at gmail dot com
2006-03-15 20:02 ` pinskia at gcc dot gnu dot org
2006-03-15 20:10 ` sjackman at gmail dot com
2009-04-29 16:50 ` [Bug target/26702] .size is not emitted for BSS variables ramana at gcc dot gnu dot org
2009-12-14 23:14 ` rearnsha at gcc dot gnu dot org
     [not found] <bug-26702-4@http.gcc.gnu.org/bugzilla/>
2015-04-23 14:50 ` ramana at gcc dot gnu.org
2015-04-23 14:54 ` ramana at gcc dot gnu.org
2015-05-21  9:23 ` ramana at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).