From 25a24b8b167a7cb28c622039ea30e4afd166cd83 Mon Sep 17 00:00:00 2001 From: Clément Sibille Date: Mon, 4 Oct 2021 13:30:31 +0200 Subject: Make kernel print hello world using the VGA text buffer --- boot/linker.ld | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 boot/linker.ld (limited to 'boot/linker.ld') diff --git a/boot/linker.ld b/boot/linker.ld new file mode 100644 index 0000000..a725f4e --- /dev/null +++ b/boot/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) + } +} \ No newline at end of file -- cgit v1.2.3