From 8a19547957a86bed3f58c9abc1ac218d04698faf Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 8 Apr 2025 10:39:48 -0400 Subject: break apart c libaray --- config/kernel.ld | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 config/kernel.ld (limited to 'config/kernel.ld') diff --git a/config/kernel.ld b/config/kernel.ld new file mode 100644 index 0000000..0806257 --- /dev/null +++ b/config/kernel.ld @@ -0,0 +1,36 @@ +ENTRY(_start) + +SECTIONS +{ + . = 1M; + + kernel_start = .; + + . = ALIGN(0x1000); + + .text : { + *(.multiboot) + *(.text) + } + + . = ALIGN(0x1000); + + .rodata : { + *(.rodata) + } + + . = ALIGN(0x1000); + + .data : { + *(.data) + } + + . = ALIGN(0x1000); + + .bss : { + *(COMMON) + *(.bss) + } + + kernel_end = .; +} -- cgit v1.2.3-freya