1
/* format of a rsyms output file:
2
struct lsymbol_table tab; gives number of symbols, and sum of length of
4
addr,char[],addr,char[],...
5
This can be read since the addr is sizeof(int) and the char[] is null
6
terminated, immediately followed by and addr...
7
there are tab.n_symbols pairs occurring.
11
#define HEADER_SEEK(x)
15
typedef unsigned int addr;
21
unsigned short tc_offset;
26
unsigned int n_symbols ;
27
unsigned int tot_leng;};
29
#define SYM_ADDRESS(table,i) ((*(table).ptable))[i].address
30
#define SYM_STRING(table,i) ((*(table).ptable))[i].string
31
#define SYM_TC_OFF(table,i) ((*(table).ptable))[i].tc_offset
33
/* typedef struct node *TABL; */
34
/* gcc does not like typedef struct node TABL[];*/
36
typedef struct node TABL[];
38
struct node * find_sym_ptable();
40
struct string_address_table
43
unsigned int alloc_length;
46
struct string_address_table c_table;
47
struct string_address_table combined_table;
49
#define PTABLE_EXTRA 20