From 4aad3cce1d22c39dfa9c0d360737fe6d92f38595 Mon Sep 17 00:00:00 2001 From: trimill Date: Fri, 26 Jan 2024 22:29:49 -0500 Subject: added boilerplate (todo make it amd64) --- src/arch/amd64/linker.ld | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/arch/amd64/linker.ld (limited to 'src/arch/amd64/linker.ld') diff --git a/src/arch/amd64/linker.ld b/src/arch/amd64/linker.ld new file mode 100644 index 0000000..4e796e2 --- /dev/null +++ b/src/arch/amd64/linker.ld @@ -0,0 +1,25 @@ +ENTRY(start) + +SECTIONS { + . = 1M; + + .boot BLOCK(4K) : ALIGN(4K) + { + *(.multiboot) + } + + .rodata BLOCK(4K) : ALIGN(4K) + { + *(.rodata) + } + + .text BLOCK(4K) : ALIGN(4K) + { + *(.text) + } + + .bss BLOCK(4K) : ALIGN(4K) + { + *(.bss) + } +} -- cgit v1.2.3-freya