aboutsummaryrefslogtreecommitdiffstats
path: root/src/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/linker.ld')
-rw-r--r--src/linker.ld34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/linker.ld b/src/linker.ld
new file mode 100644
index 0000000..f3482e9
--- /dev/null
+++ b/src/linker.ld
@@ -0,0 +1,34 @@
1ENTRY(_start)
2
3SECTIONS
4{
5 . = 0x8000;
6 __start = .;
7 .text :
8 {
9 KEEP(*(.text.boot))
10 *(.text)
11 }
12 . = ALIGN(4096);
13 .rodata :
14 {
15 *(.rodata)
16 }
17 . = ALIGN(4096);
18 .data :
19 {
20 *(.data)
21 }
22 . = ALIGN(4096);
23 __bss_start = .;
24 .bss :
25 {
26 bss = .;
27 *(.bss)
28 }
29 . = ALIGN(4096);
30 __bss_end = .;
31 __bss_size = __bss_end - __bss_start;
32 __end = .;
33}
34