mirror of
https://github.com/dynup/kpatch
synced 2025-02-06 12:11:33 +00:00
create-diff-object: don't replace section ref with section ref
Don't replace a section reference with a section reference (duh). Fixes #225.
This commit is contained in:
parent
a705c223fc
commit
3641662601
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user