From 5ad68a0c087d21fa1d0f82bea1550169f1e4c1aa Mon Sep 17 00:00:00 2001 From: Xander Date: Fri, 14 Jul 2023 17:16:54 +0200 Subject: Preparing for multiboot information --- arch/x86_64/boot/linker.ld | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'arch/x86_64/boot/linker.ld') diff --git a/arch/x86_64/boot/linker.ld b/arch/x86_64/boot/linker.ld index 5d788f1..0ad745e 100644 --- a/arch/x86_64/boot/linker.ld +++ b/arch/x86_64/boot/linker.ld @@ -6,11 +6,19 @@ SECTIONS { .boot : { /* ensure that the multiboot header is at the beginning */ - *(.multiboot_header) + KEEP(*(.multiboot_header)) } .text : { - *(.text) + *(.text .text.*) + } + + .rodata : { + *(.rodata .rodata.*) + } + + .data.rel.ro : { + *(.data.rel.ro.local*) *(.data.rel.ro .data.rel.ro.*) } } -- cgit v1.2.3