From 94b61705a911aebb090ff3e1a760ad4dbeecd0c6 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Tue, 17 Mar 2026 21:43:31 +1300 Subject: A few things --- linker.ld | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 linker.ld (limited to 'linker.ld') diff --git a/linker.ld b/linker.ld new file mode 100644 index 0000000..e56537d --- /dev/null +++ b/linker.ld @@ -0,0 +1,28 @@ +ENTRY(_start) + +SECTIONS +{ + . = 2M; + + .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