home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aix / 13070 < prev    next >
Encoding:
Text File  |  1993-01-06  |  917 b   |  41 lines

  1. Path: sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!rr2b+
  2. From: rr2b+@andrew.cmu.edu (Robert Andrew Ryan)
  3. Newsgroups: comp.unix.aix
  4. Subject: static data no in the symbol table?
  5. Message-ID: <sfGpsXC00WoiFTzn8g@andrew.cmu.edu>
  6. Date: 6 Jan 93 12:33:07 GMT
  7. Article-I.D.: andrew.sfGpsXC00WoiFTzn8g
  8. Organization: School of Computer Science, Carnegie Mellon, Pittsburgh, PA
  9. Lines: 30
  10.  
  11. It appears that under some circumstances xlc fails to output symbols for
  12. static data.  For example, compiling:
  13.  
  14. struct classheader {
  15.     long version;
  16.     char *name;
  17.     char *key;
  18.     char *data;
  19. };
  20.  
  21.  
  22. static struct classheader atom_classheader = {
  23.     4,
  24.     "atom",
  25.     "atom",
  26.     0x92382,
  27. };
  28.  
  29. gives:
  30.  
  31. % nm foo.o
  32.          U ._ptrgl
  33. 00000000 d TOC
  34. 00000000 d _foo$c$
  35. 00000008 d _foo$c$
  36.  
  37. Anyone know if this is a bug or a feature?  Any workarounds?
  38.  
  39. Thanks for any info,
  40. -Rob
  41.