mirror of
https://github.com/dynup/kpatch
synced 2024-12-14 09:24:33 +00:00
880e271841
This adds dynamic linking support for the patch modules. It is the first step toward supporting patching module code and relocatable kernels. Rela entries that reference non-included local and non-exported global symbols are converted to "dynrelas". These dynrelas are relocations that are done by the core module, not the kernel module linker. This allows the core module to apply offsets to the base addresses found in the base vmlinux or module. Signed-off-by: Seth Jennings <sjenning@redhat.com>
5 lines
233 B
Plaintext
5 lines
233 B
Plaintext
__kpatch_patches = ADDR(.kpatch.patches);
|
|
__kpatch_patches_end = ADDR(.kpatch.patches) + SIZEOF(.kpatch.patches);
|
|
__kpatch_dynrelas = ADDR(.kpatch.dynrelas);
|
|
__kpatch_dynrelas_end = ADDR(.kpatch.dynrelas) + SIZEOF(.kpatch.dynrelas);
|