2014-05-14 20:43:58 +00:00
|
|
|
#ifndef _LOOKUP_H_
|
|
|
|
#define _LOOKUP_H_
|
|
|
|
|
2019-11-01 19:59:05 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2014-05-14 20:43:58 +00:00
|
|
|
struct lookup_table;
|
|
|
|
|
|
|
|
struct lookup_result {
|
2019-11-01 20:03:14 +00:00
|
|
|
char *objname;
|
2018-04-18 18:39:56 +00:00
|
|
|
unsigned long addr;
|
2014-05-14 20:43:58 +00:00
|
|
|
unsigned long size;
|
2018-04-18 18:41:24 +00:00
|
|
|
unsigned long sympos;
|
2018-03-22 20:22:10 +00:00
|
|
|
bool global, exported;
|
2014-05-14 20:43:58 +00:00
|
|
|
};
|
|
|
|
|
2017-02-04 01:31:25 +00:00
|
|
|
struct sym_compare_type {
|
|
|
|
char *name;
|
|
|
|
int type;
|
|
|
|
};
|
|
|
|
|
2019-11-01 20:03:14 +00:00
|
|
|
struct lookup_table *lookup_open(char *symtab_path, char *objname,
|
|
|
|
char *symvers_path, char *hint,
|
|
|
|
struct sym_compare_type *locals);
|
2014-05-14 20:43:58 +00:00
|
|
|
void lookup_close(struct lookup_table *table);
|
2018-03-22 20:22:10 +00:00
|
|
|
bool lookup_symbol(struct lookup_table *table, char *name,
|
|
|
|
struct lookup_result *result);
|
2014-05-14 20:43:58 +00:00
|
|
|
|
|
|
|
#endif /* _LOOKUP_H_ */
|