mirror of
https://github.com/dynup/kpatch
synced 2025-02-16 17:57:02 +00:00
symtab_read(): fix SECTION detection in symtab_read
symtab_read has been checking a wrong field for "SECTION". Switch the field from "bind" to "type". Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
f3ff4043fc
commit
f7cfe25e8a
@ -206,7 +206,7 @@ static void symtab_read(struct lookup_table *table, char *path)
|
||||
if (sscanf(line, "%*s %lx %lu %s %s %*s %s %s\n",
|
||||
&value, &size, type, bind, ndx, name) != 6 ||
|
||||
!strcmp(ndx, "UNDEF") ||
|
||||
!strcmp(bind, "SECTION"))
|
||||
!strcmp(type, "SECTION"))
|
||||
continue;
|
||||
|
||||
table->obj_nr++;
|
||||
@ -223,7 +223,7 @@ static void symtab_read(struct lookup_table *table, char *path)
|
||||
if (sscanf(line, "%*s %lx %lu %s %s %*s %s %s\n",
|
||||
&value, &size, type, bind, ndx, name) != 6 ||
|
||||
!strcmp(ndx, "UNDEF") ||
|
||||
!strcmp(bind, "SECTION"))
|
||||
!strcmp(type, "SECTION"))
|
||||
continue;
|
||||
|
||||
table->obj_syms[i].value = value;
|
||||
|
Loading…
Reference in New Issue
Block a user