Merge pull request #504 from libin2015/section-change-fix

kpatch-build: verify bss/data/init section change properly
This commit is contained in:
Seth Jennings 2015-10-15 17:05:07 -05:00
commit c8b0f18aa9
1 changed files with 3 additions and 3 deletions

View File

@ -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);