mirror of
https://github.com/dynup/kpatch
synced 2025-04-11 03:31:20 +00:00
Fix sym->type condition in locals_match()
Second loop in locals_match() checks table_sym->type instead of
sym->type.
Fixes: 7207687
Switch to per-file lookup table pointers.
Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
aa33ee7dff
commit
4d8c8102de
@ -131,7 +131,7 @@ static bool locals_match(struct lookup_table *table, int idx,
|
|||||||
break;
|
break;
|
||||||
if (sym->bind != STB_LOCAL)
|
if (sym->bind != STB_LOCAL)
|
||||||
continue;
|
continue;
|
||||||
if (sym->type != STT_FUNC && table_sym->type != STT_OBJECT)
|
if (sym->type != STT_FUNC && sym->type != STT_OBJECT)
|
||||||
continue;
|
continue;
|
||||||
/*
|
/*
|
||||||
* Symbols which get discarded at link time are missing from
|
* Symbols which get discarded at link time are missing from
|
||||||
|
Loading…
Reference in New Issue
Block a user