01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SYMS ( 4) SYMS ( 4)<br />

NAME<br />

syms - common object file symbol table format<br />

SYNOPSIS<br />

#include <br />

DESCRIPTION<br />

Common object files contain information to support symb olic<br />

software testing (see sdb (1 ). Line number entries, linenum( 4), and<br />

extensive symbolic information permit testing at the C source<br />

level. Every object file's symbol table is organized as shown<br />

below.<br />

File name 1.<br />

Function 1.<br />

Local symbols for function 1.<br />

Function 2<br />

Local symbols for function 2.<br />

Static externs for file 1.<br />

File name 2.<br />

Function 1.<br />

Local symbols for function 1.<br />

Function 2.<br />

Local symbols for function 2.<br />

Static externs for file 2.<br />

Defined global symbols.<br />

Undefined global symbols.<br />

The entry for a symbol is a fixed-length structure. The members<br />

of the structure hold the name (null padded), its value, and other<br />

information. The C structure is given below.<br />

#define SYMNMLEN 8<br />

#define FILNMLEN 14<br />

struct syment<br />

{<br />

char<br />

n_name[SYMNMLEN] ;<br />

long<br />

n_value ; I* value of symbol *I<br />

short<br />

n_scnum ; I* section number *I<br />

unsigned short n_type ; I* type and derived type *I<br />

char<br />

n_sclass ; I* storage class *I<br />

char<br />

n_numaux ; I* number of aux entries *I<br />

} ;<br />

Meaningful values and explanations for them are given in both<br />

syms.h and Common Object File Format. Anyone who needs to<br />

interpret the entries should seek more information in these<br />

sources. Some symbols require more information than a single<br />

entry; they are followed by auxiliary entries that are the same size<br />

as a symbol entry. The format follows.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!