From 19baa5b7c7f4e34f7822e81e99fb6232649c153a Mon Sep 17 00:00:00 2001 From: Josh Poimboeuf Date: Thu, 22 Mar 2018 17:49:39 -0500 Subject: [PATCH] create-diff-object: process debug sections last Process the debug sections only after all the other inclusion logic has finished, since it makes decisions based on what else has already been included. Signed-off-by: Josh Poimboeuf --- kpatch-build/create-diff-object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index 0efe881..66b9530 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -3413,10 +3413,10 @@ int main(int argc, char *argv[]) kpatch_include_standard_elements(kelf_patched); num_changed = kpatch_include_changed_functions(kelf_patched); - kpatch_include_debug_sections(kelf_patched); callbacks_exist = kpatch_include_callback_elements(kelf_patched); kpatch_include_force_elements(kelf_patched); new_globals_exist = kpatch_include_new_globals(kelf_patched); + kpatch_include_debug_sections(kelf_patched); kpatch_process_special_sections(kelf_patched);