mirror of
https://github.com/dynup/kpatch
synced 2024-12-21 12:50:01 +00:00
3aa5abb807
create-diff-object doesn't really need the full kernel object file as input. All it requires is a symbol table. Switch to using "eu-readelf -s"'s output instead of object files. This will enable us to cover more cases in unit tests. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Artem Savkov <asavkov@redhat.com>
28 lines
789 B
C
28 lines
789 B
C
#ifndef _LOOKUP_H_
|
|
#define _LOOKUP_H_
|
|
|
|
struct lookup_table;
|
|
|
|
struct lookup_result {
|
|
unsigned long value;
|
|
unsigned long size;
|
|
unsigned long pos;
|
|
};
|
|
|
|
struct sym_compare_type {
|
|
char *name;
|
|
int type;
|
|
};
|
|
|
|
struct lookup_table *lookup_open(char *symtab_path, char *symvers_path,
|
|
char *hint, struct sym_compare_type *locals);
|
|
void lookup_close(struct lookup_table *table);
|
|
int lookup_local_symbol(struct lookup_table *table, char *name,
|
|
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);
|
|
char *lookup_exported_symbol_objname(struct lookup_table *table, char *name);
|
|
|
|
#endif /* _LOOKUP_H_ */
|