diff --git a/kpatch-build/lookup.c b/kpatch-build/lookup.c index 06f4b38..c9e6cc7 100644 --- a/kpatch-build/lookup.c +++ b/kpatch-build/lookup.c @@ -272,12 +272,14 @@ static void symtab_read(struct lookup_table *table, char *path) * tables. .dynsym is just a subset of .symtab, so skip it to * avoid duplicates. */ - if (strstr(line, ".dynsym")) { - skip = true; - continue; - } else if (strstr(line, ".symtab")) { - skip = false; - continue; + if (!strncmp(line, "Symbol table ", 13)) { + if (strstr(line, ".dynsym")) { + skip = true; + continue; + } else if (strstr(line, ".symtab")) { + skip = false; + continue; + } } if (skip) continue;