blob: 7f41f915175b07b0e1618d825050e8fea753c6a8 [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;
Bruce Beare6cc49232010-10-13 16:11:15 -070013 char *name;
Meng Huae7b91b2009-11-05 16:10:50 -060014};
15
16struct symbol_table *symbol_table_create(const char *filename);
17void symbol_table_free(struct symbol_table *table);
18const struct symbol *symbol_table_lookup(struct symbol_table *table, unsigned int addr);
19
20#endif