aboutsummaryrefslogtreecommitdiff
path: root/test/hello_world/hello_kernel/hello_kernel.ld
diff options
context:
space:
mode:
Diffstat (limited to 'test/hello_world/hello_kernel/hello_kernel.ld')
-rw-r--r--test/hello_world/hello_kernel/hello_kernel.ld29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/hello_world/hello_kernel/hello_kernel.ld b/test/hello_world/hello_kernel/hello_kernel.ld
new file mode 100644
index 0000000..d9bbc92
--- /dev/null
+++ b/test/hello_world/hello_kernel/hello_kernel.ld
@@ -0,0 +1,29 @@
+ENTRY(_start)
+SECTIONS
+{
+ .text :
+ {
+ _start = .;
+ *(.text)
+ }
+
+ . = ALIGN(4096);
+ .data :
+ {
+ *(.rodata*)
+ *(.data*)
+ *(.sdata*)
+ *(.got2)
+ }
+
+ . = ALIGN(4096);
+ .bss :
+ {
+ _edata = .;
+ __bss_start = .;
+ *(.sbss)
+ *(.bss)
+ *(COMMON)
+ _end = . ;
+ }
+}