Merge pull request #1249 from sm00th/locals_match_fix

Fix sym->type condition in locals_match()
This commit is contained in:
Joe Lawrence 2022-02-04 09:10:01 -05:00 committed by GitHub
commit aaaebaf258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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