From fde20f86f5be5a39fd3eadf95ba71761d173e0ce Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 24 Jun 2021 20:41:07 +0200 Subject: Hello world o/ --- linker.ld | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 linker.ld (limited to 'linker.ld') diff --git a/linker.ld b/linker.ld new file mode 100644 index 0000000..dd7c64c --- /dev/null +++ b/linker.ld @@ -0,0 +1,24 @@ +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) + } +} -- cgit v1.2.3