mirror of https://github.com/dynup/kpatch
Merge pull request #504 from libin2015/section-change-fix
kpatch-build: verify bss/data/init section change properly
This commit is contained in:
commit
c8b0f18aa9
|
@ -2939,6 +2939,9 @@ int main(int argc, char *argv[])
|
|||
kpatch_print_changes(kelf_patched);
|
||||
kpatch_dump_kelf(kelf_patched);
|
||||
|
||||
kpatch_process_special_sections(kelf_patched);
|
||||
kpatch_verify_patchability(kelf_patched);
|
||||
|
||||
if (!num_changed && !new_globals_exist) {
|
||||
if (hooks_exist)
|
||||
log_debug("no changed functions were found, but hooks exist\n");
|
||||
|
@ -2948,9 +2951,6 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
kpatch_process_special_sections(kelf_patched);
|
||||
kpatch_verify_patchability(kelf_patched);
|
||||
|
||||
/* this is destructive to kelf_patched */
|
||||
kpatch_migrate_included_elements(kelf_patched, &kelf_out);
|
||||
|
||||
|
|
Loading…
Reference in New Issue