From eed77bd2970a00d1394ed027ceca5b646e4671ce Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 17 Jun 2020 18:31:46 +0200 Subject: Started rewrite --- src/link.ld | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/link.ld (limited to 'src/link.ld') diff --git a/src/link.ld b/src/link.ld new file mode 100644 index 0000000..d5aa082 --- /dev/null +++ b/src/link.ld @@ -0,0 +1,28 @@ +ENTRY(boot) + +SECTIONS +{ + . = 1M; + + .text BLOCK(4K) : ALIGN(4K) + { + text_start = .; + *(.text) + *(.rodata) + } + + .data BLOCK(4K) : ALIGN(4K) + { + data_start = .; + *(.data) + } + + .bss BLOCK(4K) : ALIGN(4K) + { + bss_start = .; + *(.COMMON) + *(.bss) + } + + kernel_end = .; +} -- cgit v1.2.3