home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!rr2b+
- From: rr2b+@andrew.cmu.edu (Robert Andrew Ryan)
- Newsgroups: comp.unix.aix
- Subject: static data no in the symbol table?
- Message-ID: <YfGptaS00Woi9TznQf@andrew.cmu.edu>
- Date: 6 Jan 93 12:34:14 GMT
- Article-I.D.: andrew.YfGptaS00Woi9TznQf
- Organization: School of Computer Science, Carnegie Mellon, Pittsburgh, PA
- Lines: 31
-
- It appears that under some circumstances xlc fails to output symbols for
- static data. For example, compiling:
-
- struct classheader {
- long version;
- char *name;
- char *key;
- char *data;
- };
-
-
- static struct classheader atom_classheader = {
- 4,
- "atom",
- "atom",
- 0x92382,
- };
-
- gives:
-
- % nm foo.o
- U ._ptrgl
- 00000000 d TOC
- 00000000 d _foo$c$
- 00000008 d _foo$c$
-
- Anyone know if this is a bug or a feature? Any workarounds?
-
- Thanks for any info,
- -Rob
- p.s. sorry if you got a funny looking version before this one...
-