mirror of
https://github.com/dynup/kpatch
synced 2024-12-14 17:34:34 +00:00
Merge pull request #301 from jpoimboe/debug-seg-fault
create-diff-object: fix for unincluded sec->secsym
This commit is contained in:
commit
60efcbd63e
@ -1134,6 +1134,9 @@ void kpatch_migrate_included_elements(struct kpatch_elf *kelf, struct kpatch_elf
|
||||
list_del(&sec->list);
|
||||
list_add_tail(&sec->list, &out->sections);
|
||||
sec->index = 0;
|
||||
if (!is_rela_section(sec) && sec->secsym && !sec->secsym->include)
|
||||
/* break link to non-included section symbol */
|
||||
sec->secsym = NULL;
|
||||
}
|
||||
|
||||
/* migrate included symbols from kelf to out */
|
||||
|
Loading…
Reference in New Issue
Block a user