From 06d05938cc828901703112b99740c2e90a392b88 Mon Sep 17 00:00:00 2001 From: Alexey Gavrilov Date: Tue, 8 Aug 2023 18:38:07 +0700 Subject: First commit --- kernel/linker.ld | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 kernel/linker.ld (limited to 'kernel/linker.ld') diff --git a/kernel/linker.ld b/kernel/linker.ld new file mode 100644 index 0000000..e490e6a --- /dev/null +++ b/kernel/linker.ld @@ -0,0 +1,28 @@ +ENTRY(_start) + +SECTIONS +{ + . = 1M; + + .text BLOCK(4K) : ALIGN(4K) + { + *.(.multiboot) + *(.text) + } + + .rodata BLOCK(4K) : ALIGN(4k) + { + *(.rodata) + } + + .data BLOCK(4K) : ALIGN(4K) + { + *(.data) + } + + .bss BLOCK(4K) : ALIGN(4K) + { + *(COMMON) + *(.bss) + } +} -- cgit v1.2.3