From: Ross Lagerwall Date: Mon, 9 May 2016 10:21:22 +0000 (+0100) Subject: Update the layout of xsplice_patch_func X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9ba2e17351b77a631d8412c60f0da1072bfdbc1e;p=livepatch-build-tools.git Update the layout of xsplice_patch_func Signed-off-by: Ross Lagerwall --- diff --git a/common.h b/common.h index c4adce9..d76881c 100644 --- a/common.h +++ b/common.h @@ -122,7 +122,8 @@ struct xsplice_patch_func { unsigned long old_addr; uint32_t new_size; uint32_t old_size; - unsigned char pad[32]; + uint8_t version; + unsigned char pad[31]; }; struct special_section { diff --git a/create-diff-object.c b/create-diff-object.c index 7d3824b..0488556 100644 --- a/create-diff-object.c +++ b/create-diff-object.c @@ -1699,6 +1699,7 @@ static void xsplice_create_patches_sections(struct kpatch_elf *kelf, funcs[index].old_size = result.size; funcs[index].new_addr = 0; funcs[index].new_size = sym->sym.st_size; + funcs[index].version = 1; memset(funcs[index].pad, 0, sizeof funcs[index].pad); /*