Merge pull request #965 from joe-lawrence/altinstr_replacement

kpatch-build: ensure that .altinstr_replacement section is included
This commit is contained in:
Joe Lawrence 2019-05-31 13:51:27 -04:00 committed by GitHub
commit 0cdc2a3757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -2424,7 +2424,7 @@ static void kpatch_process_special_sections(struct kpatch_elf *kelf)
sec->rela->include = 1;
/* include all symbols referenced by relas */
list_for_each_entry(rela, &sec->rela->relas, list)
rela->sym->include = 1;
kpatch_include_symbol(rela->sym);
}
}
@ -3304,10 +3304,11 @@ int main(int argc, char *argv[])
kpatch_include_force_elements(kelf_patched);
new_globals_exist = kpatch_include_new_globals(kelf_patched);
kpatch_process_special_sections(kelf_patched);
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) {