2014-05-14 20:43:58 +00:00
|
|
|
#ifndef _LOOKUP_H_
|
|
|
|
#define _LOOKUP_H_
|
|
|
|
|
|
|
|
struct lookup_table;
|
|
|
|
|
|
|
|
struct lookup_result {
|
|
|
|
unsigned long value;
|
|
|
|
unsigned long size;
|
2016-02-11 17:27:12 +00:00
|
|
|
unsigned long pos;
|
2014-05-14 20:43:58 +00:00
|
|
|
};
|
|
|
|
|
2017-02-04 01:31:25 +00:00
|
|
|
struct sym_compare_type {
|
|
|
|
char *name;
|
|
|
|
int type;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct lookup_table *lookup_open(char *obj_path, 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);
|
2017-02-04 01:31:25 +00:00
|
|
|
int lookup_local_symbol(struct lookup_table *table, char *name,
|
2014-05-14 20:43:58 +00:00
|
|
|
struct lookup_result *result);
|
|
|
|
int lookup_global_symbol(struct lookup_table *table, char *name,
|
|
|
|
struct lookup_result *result);
|
|
|
|
int lookup_is_exported_symbol(struct lookup_table *table, char *name);
|
2017-01-23 20:43:12 +00:00
|
|
|
char *lookup_exported_symbol_objname(struct lookup_table *table, char *name);
|
2014-05-14 20:43:58 +00:00
|
|
|
|
|
|
|
#endif /* _LOOKUP_H_ */
|