Related articles |
---|
Strange Behavior With Solaris (Sparc) C Compiler djm52@cornell.edu (Daniel Marques) (2005-05-13) |
Re: Strange Behavior With Solaris (Sparc) C Compiler mayan@sandbridgetech.com (Mayan Moudgill) (2005-05-14) |
Re: Strange Behavior With Solaris (Sparc) C Compiler gah@ugcs.caltech.edu (glen herrmannsfeldt) (2005-05-14) |
Re: Strange Behavior With Solaris (Sparc) C Compiler js@cs.tu-berlin.de (2005-05-14) |
Re: Strange Behavior With Solaris (Sparc) C Compiler djm52@cornell.edu (Daniel Marques) (2005-05-16) |
Re: Strange Behavior With Solaris (Sparc) C Compiler touati@prism.uvsq.fr (TOUATI Sid) (2005-05-20) |
From: | js@cs.tu-berlin.de (Joerg Schilling) |
Newsgroups: | comp.unix.solaris,comp.compilers |
Date: | 14 May 2005 12:18:37 -0400 |
Organization: | Technische Universitaet Berlin, Deutschland |
References: | 05-05-065 |
Keywords: | code, linker |
Posted-Date: | 14 May 2005 12:18:37 EDT |
Daniel Marques <djm52@cornell.edu> wrote:
>Hello. I have a question regarding some behavior I'm
>seeing with the C compiler on Solaris 9 and was hoping someone could
>shed some insight.
>
>
>$ uname -a
>SunOS *.*.* 5.9 Generic_117171-14 sun4u sparc SUNW,Sun-Fire-V210 Solaris
>
>$ cc -V
>cc: Sun C 5.5 Patch 112760-16 2005/01/25
>However, when I compile with the command "cc -c -g -xO0 test.c", nm now
>reports the size of "mother" as 0.
Using the compiler in the version that Sun uses to compile Solaris 10
reports this:
[Index] Value Size Type Bind Other Shndx Name
[5] | 0| 0|SECT |LOCL |0 |4 |.bss
[2] | 0| 0|SECT |LOCL |0 |2 |.data
[7] | 0| 0|SECT |LOCL |0 |5 |.rodata
[4] | 0| 0|SECT |LOCL |0 |3 |.text
[12] | 0| 4|OBJT |GLOB |0 |5 |.XBAjaAcJRfhCEGh.foo.__func__
[11] | 0| 4|OBJT |GLOB |0 |4 |.XBAjaAcJRfhCEGh.foo.father
[9] | 0| 4|OBJT |GLOB |0 |2 |.XBAjaAcJRfhCEGh.foo.mother
[6] | 0| 0|NOTY |LOCL |0 |4 |Bbss.bss
[3] | 0| 0|NOTY |LOCL |0 |2 |Ddata.data
[8] | 0| 0|NOTY |LOCL |0 |5 |Drodata.rodata
[10] | 0| 56|FUNC |GLOB |0 |3 |foo
cc -V
cc: Sun C 5.5 Patch 112761-06 2004/01/13
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni)
schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
Return to the
comp.compilers page.
Search the
comp.compilers archives again.