diff --git a/kmod/core/core.c b/kmod/core/core.c index e4c6a04..c66e0c8 100644 --- a/kmod/core/core.c +++ b/kmod/core/core.c @@ -742,7 +742,7 @@ static int kpatch_write_relocations(struct kpatch_module *kpmod, break; case R_X86_64_64: loc = dynrela->dest; - val = dynrela->src; + val = dynrela->src + dynrela->addend; size = 8; break; default: