Merge pull request #226 from jpoimboe/dont-replace-sec-with-sec

create-diff-object: don't replace section ref with section ref
This commit is contained in:
Seth Jennings 2014-06-02 14:28:09 -05:00
commit 5501c7211c

View File

@ -750,7 +750,8 @@ void kpatch_replace_sections_syms(struct kpatch_elf *kelf)
continue;
list_for_each_entry(sym, &kelf->symbols, list) {
if (sym->sec != rela->sym->sec)
if (sym->type == STT_SECTION ||
sym->sec != rela->sym->sec)
continue;
if (rela->type == R_X86_64_PC32) {