From 2c8cefb3a269d66a6a705bcb4912b0657379273c Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 25 May 2015 13:04:41 +0200 Subject: fixed crt0.o for compiler toolchain (-lfool no more!) --- userspace/sys/linker.ld | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 userspace/sys/linker.ld (limited to 'userspace/sys/linker.ld') diff --git a/userspace/sys/linker.ld b/userspace/sys/linker.ld new file mode 100644 index 0000000..7c1c4bf --- /dev/null +++ b/userspace/sys/linker.ld @@ -0,0 +1,37 @@ +ENTRY(_start) + +SECTIONS +{ + . = 1M; + + kernel_start = .; + + .text BLOCK(4K) : ALIGN(4K) + { + *(.multiboot) + *(.text) + } + + /* Read-only data. */ + .rodata BLOCK(4K) : ALIGN(4K) + { + *(.rodata) + } + + /* Read-write data (initialized) */ + .data BLOCK(4K) : ALIGN(4K) + { + *(.data) + } + + /* Read-write data (uninitialized) and stack */ + .bss BLOCK(4K) : ALIGN(4K) + { + *(COMMON) + *(.bss) + *(.bootstrap_stack) + } + + kernel_end = .; + +} -- cgit v1.2.3