Merge pull request #707 from vincentbernat/fix/lookup-vmlinux

create-diff-object: only check if kernel object starts with "vmlinux"
This commit is contained in:
Josh Poimboeuf 2017-05-18 21:40:30 -05:00 committed by GitHub
commit 8e51cdd724
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ struct lookup_table *lookup_open(char *obj_path, char *symvers_path,
ERROR("malloc table");
memset(table, 0, sizeof(*table));
table->vmlinux = !strcmp(basename(obj_path), "vmlinux");
table->vmlinux = !strncmp(basename(obj_path), "vmlinux", 7);
obj_read(table, obj_path);
symvers_read(table, symvers_path);