mirror of
https://github.com/dynup/kpatch
synced 2024-12-22 13:12:06 +00:00
0a3e6c5f42
The dynrela (aka .klp.rela) conversion logic is notoriously complex and fragile. Simplify it and improve the comments. This is mainly a cosmetic change. In theory it shouldn't change functionality or break anything. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
29 lines
579 B
C
29 lines
579 B
C
#ifndef _LOOKUP_H_
|
|
#define _LOOKUP_H_
|
|
|
|
#include <stdbool.h>
|
|
|
|
struct lookup_table;
|
|
|
|
struct lookup_result {
|
|
char *objname;
|
|
unsigned long addr;
|
|
unsigned long size;
|
|
unsigned long sympos;
|
|
bool global, exported;
|
|
};
|
|
|
|
struct sym_compare_type {
|
|
char *name;
|
|
int type;
|
|
};
|
|
|
|
struct lookup_table *lookup_open(char *symtab_path, char *objname,
|
|
char *symvers_path, char *hint,
|
|
struct sym_compare_type *locals);
|
|
void lookup_close(struct lookup_table *table);
|
|
bool lookup_symbol(struct lookup_table *table, char *name,
|
|
struct lookup_result *result);
|
|
|
|
#endif /* _LOOKUP_H_ */
|