mirror of
https://github.com/dynup/kpatch
synced 2024-12-15 18:04:32 +00:00
34cc258a31
When patching module A, if one of the new function's relas reference a symbol in module B, we currently just leave it as a normal rela. But if module B hasn't been loaded yet, the patch module will fail to load due to the rela's reference to an undefined symbol. The fix is to convert these relas to dynrelas, which can be resolved later in the module notifier when A is loaded. Also added support for the R_X86_64_NONE relocation type, needed for dynrelas which reference __fentry__. |
||
---|---|---|
.. | ||
kpatch-patch-hook.c | ||
kpatch-patch.h | ||
kpatch.h | ||
kpatch.lds | ||
Makefile |