From: Artem Kuzin <artem.kuzin@xxxxxxxxxx> Co-developed-by: Nikita Panov <nikita.panov@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Nikita Panov <nikita.panov@xxxxxxxxxxxxxxxxxxx> Co-developed-by: Alexander Grubnikov <alexander.grubnikov@xxxxxxxxxx> Signed-off-by: Alexander Grubnikov <alexander.grubnikov@xxxxxxxxxx> Signed-off-by: Artem Kuzin <artem.kuzin@xxxxxxxxxx> --- 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