[comp.unix.wizards] grammar for "cc -g" symbol table info wanted

bill@allegra.att.com (Bill Schell) (08/28/90)

Does anyone out there happen to have or know where I can find a
grammar describing the format of the information that "cc -g" puts
into the symbol table for .o files?  (For Sun or similar C compilers.)
I'm talking about what you get when you run "nm -a file.o". Things
like:

fffffb05 - 00 0004  LSYM iptr:t(0,13)=ar(0,1);0;22;(0,14)=*(0,1)

I could easily do a grammar myself from observation of the data,
but I'd like to make sure I'm catching all the cases.

Thanks very much,

Bill Schell
AT&T Bell Labs, Murray Hill, NJ
bill@research.att.com OR allegra!bill

george@hls0.hls.oz (George Turczynski) (08/31/90)

In article <BILL.90Aug27184046@gargoyle.allegra.att.com>, bill@allegra.att.com (Bill Schell) writes:
> Does anyone out there happen to have or know where I can find a
> grammar describing the format of the information that "cc -g" puts
> into the symbol table for .o files?  (For Sun or similar C compilers.)
> I'm talking about what you get when you run "nm -a file.o". Things
> like:
> 
> fffffb05 - 00 0004  LSYM iptr:t(0,13)=ar(0,1);0;22;(0,14)=*(0,1)

I think you'll find what you're looking for (or at least pointers to it)
if you look in Section 5 of the manual (file formats) under "a.out".

Have a nice day...

-- 
| George P. J. Turczynski.          |---------------------------------------------------- 
| Computer Systems Engineer.        | ACSnet: george@highland.oz | I can't speak for the |
| Highland Logic Pty. Ltd.          | Phone: +61 48 683490       | company, I can barely |
| Suite 1, 348-354 Argyle St        | Fax:   +61 48 683474       | speak for myself...   |
| Moss Vale. NSW. Australia. 2577   |----------------------------------------------------