mirror of
https://github.com/dynup/kpatch
synced 2024-12-13 00:44:34 +00:00
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:
commit
5501c7211c
@ -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