mirror of https://github.com/dynup/kpatch
Merge pull request #1249 from sm00th/locals_match_fix
Fix sym->type condition in locals_match()
This commit is contained in:
commit
aaaebaf258
|
@ -131,7 +131,7 @@ static bool locals_match(struct lookup_table *table, int idx,
|
|||
break;
|
||||
if (sym->bind != STB_LOCAL)
|
||||
continue;
|
||||
if (sym->type != STT_FUNC && table_sym->type != STT_OBJECT)
|
||||
if (sym->type != STT_FUNC && sym->type != STT_OBJECT)
|
||||
continue;
|
||||
/*
|
||||
* Symbols which get discarded at link time are missing from
|
||||
|
|
Loading…
Reference in New Issue