summaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2026-10-05 08:56:38 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2026-10-05 08:58:29 -0700
commit4d21315f667c03eaf44a580c3435f73853b53dbf (patch)
tree881a6caabe9f289a7bc6e8ad9fd67279f4d09eba /linker.ld
downloadmacaroni-4d21315f667c03eaf44a580c3435f73853b53dbf.tar.gz
macaroni-4d21315f667c03eaf44a580c3435f73853b53dbf.zip
Init
Diffstat (limited to 'linker.ld')
-rw-r--r--linker.ld9
1 files changed, 9 insertions, 0 deletions
diff --git a/linker.ld b/linker.ld
new file mode 100644
index 0000000..29da3f9
--- /dev/null
+++ b/linker.ld
@@ -0,0 +1,9 @@
+ENTRY(_start)
+SECTIONS
+{
+ . = 2M;
+ .text BLOCK(4K) : ALIGN(4K) { *(.multiboot_header) *(.text) }
+ .rodata BLOCK(4K) : ALIGN(4K) { *(.rodata) }
+ .data BLOCK(4K) : ALIGN(4K) { *(.data) }
+ .bss BLOCK(4K) : ALIGN(4K) { *(COMMON) *(.bss) }
+}