kpatch/kpatch-build
Li Bin 724cac2e36 kpatch-build: support patching weak function
Before this patch, if changed function is weak symbol, it is not
be allowed to create live patch, and it will trigger the following
error:
/usr/local/libexec/kpatch/create-diff-object: ERROR: ***.o:
kpatch_create_patches_sections: 2294: lookup_global_symbol ***

And if the changed function reference the weak symbol, when loading
the patch module will trigger the following error:
module kpatch-***: overflow in relocation type *** val 0
insmod: can't insert 'kpatch-***.ko': invalid module format

This patch fix it and add support for patching weak function.

Signed-off-by: Li Bin <huawei.libin@huawei.com>
2015-10-16 13:21:00 +08:00
..
insn
create-diff-object.c Merge pull request #504 from libin2015/section-change-fix 2015-10-15 17:05:07 -05:00
kpatch-build Fix kpatch-build failure with srpm on centos 2015-05-31 02:47:52 +01:00
kpatch-gcc kpatch-gcc: for module patches, copy module to temp dir 2014-10-06 01:05:36 -07:00
list.h new .fixup group size algorithm 2014-09-15 14:54:57 -05:00
lookup.c kpatch-build: support patching weak function 2015-10-16 13:21:00 +08:00
lookup.h
Makefile improve kpatch-build Makefile 2014-09-23 09:45:04 -05:00