]> xenbits.xensource.com Git - people/wipawel/livepatch-build-tools/commitdiff
Update the layout of xsplice_patch_func
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 9 May 2016 10:21:22 +0000 (11:21 +0100)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 9 May 2016 10:21:22 +0000 (11:21 +0100)
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
common.h
create-diff-object.c

index c4adce9a97dd227139da9af4a719167f61712751..d76881c929e175ade134915912ba0c884a2eb2aa 100644 (file)
--- 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 {
index 7d3824bcf19a55cb92e739aefa3d3681f69839fa..04885566b553f6971dfcb84fccefbc7c58bfeca6 100644 (file)
@@ -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);
 
                        /*