blob: d9d2520211487f433dcb15df6cc8c276b318422f [file] [log] [blame]
Meng Huae7b91b2009-11-05 16:10:50 -06001#ifndef SYMBOL_TABLE_H
2#define SYMBOL_TABLE_H
3
4struct symbol {
5 unsigned int addr;
6 unsigned int size;
7 char *name;
8};
9
10struct symbol_table {
11 struct symbol *symbols;
12 int num_symbols;
13};
14
15struct symbol_table *symbol_table_create(const char *filename);
16void symbol_table_free(struct symbol_table *table);
17const struct symbol *symbol_table_lookup(struct symbol_table *table, unsigned int addr);
18
19#endif