Merge pull request #215 from jstancek/issue202

correlate symbols also by type
This commit is contained in:
Josh Poimboeuf 2014-05-27 12:49:42 -05:00
commit 98617df3ef

View File

@ -626,7 +626,8 @@ void kpatch_correlate_symbols(struct list_head *symlist1, struct list_head *syml
list_for_each_entry(sym1, symlist1, list) {
list_for_each_entry(sym2, symlist2, list) {
if (!strcmp(sym1->name, sym2->name)) {
if (!strcmp(sym1->name, sym2->name) &&
sym1->type == sym2->type) {
sym1->twin = sym2;
sym2->twin = sym1;
/* set initial status, might change */