From: Artem Kuzin <[email protected]>
Co-developed-by: Nikita Panov <[email protected]>
Signed-off-by: Nikita Panov <[email protected]>
Co-developed-by: Alexander Grubnikov <[email protected]>
Signed-off-by: Alexander Grubnikov <[email protected]>
Signed-off-by: Artem Kuzin <[email protected]>
---
arch/x86/kernel/vmlinux.lds.S | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S
index f15fb71f280e..3841293e7aad 100644
--- a/arch/x86/kernel/vmlinux.lds.S
+++ b/arch/x86/kernel/vmlinux.lds.S
@@ -159,11 +159,11 @@ SECTIONS
} :text = 0xcccccccc
/* End of text section, which should occupy whole number of pages */
+ . = ALIGN(HPAGE_SIZE); //For kernel replication
_etext = .;
- . = ALIGN(PAGE_SIZE);
X86_ALIGN_RODATA_BEGIN
- RO_DATA(PAGE_SIZE)
+ RO_DATA(HPAGE_SIZE)
X86_ALIGN_RODATA_END
/* Data */
--
2.34.1