From 05e1fedcc9cd30d1a34a65e640da45e980b4f859 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 19 Sep 2019 19:56:59 +0200 Subject: Moved source to kernel directory --- src/kernel/linker.ld | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/kernel/linker.ld (limited to 'src/kernel/linker.ld') diff --git a/src/kernel/linker.ld b/src/kernel/linker.ld new file mode 100644 index 0000000..6461b2b --- /dev/null +++ b/src/kernel/linker.ld @@ -0,0 +1,25 @@ +OUTPUT_FORMAT("binary") +ENTRY(start) +phys = 0x00100000; +SECTIONS +{ + .text phys : AT(phys) { + code = .; + *(.text) + *(.rodata*) + . = ALIGN(4096); + } + .data : AT(phys + (data - code)) + { + data = .; + *(.data) + . = ALIGN(4096); + } + .bss : AT(phys + (bss - code)) + { + bss = .; + *(.bss) + . = ALIGN(4096); + } + end = .; +} -- cgit v1.2.3