aboutsummaryrefslogtreecommitdiff
path: root/src/linker.ld
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2021-04-19 19:06:28 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2021-04-19 19:06:28 +0200
commitca1e725b0dc9b10997897dd2ac6d44028601d9bb (patch)
tree0eb7bd087a2382d1d1a660ceda1eae01d1b8b3ca /src/linker.ld
parentf5146ca9c987ed5e6ea69a0c67b7ed03444be30c (diff)
Init sources
Diffstat (limited to 'src/linker.ld')
-rw-r--r--src/linker.ld29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/linker.ld b/src/linker.ld
new file mode 100644
index 0000000..ed8fc5d
--- /dev/null
+++ b/src/linker.ld
@@ -0,0 +1,29 @@
+ENTRY(_start)
+OUTPUT_FORMAT(elf64-x86-64)
+
+SECTIONS {
+
+ . = 1M;
+
+ .text : ALIGN(4)
+ {
+ *(.multiboot)
+ *(.text)
+ }
+ .rodata : ALIGN(4)
+ {
+ *(.rodata)
+ }
+ .data : ALIGN(4)
+ {
+ *(.data)
+ }
+ .bss : ALIGN(4)
+ {
+ _bss_start = .;
+ *(.bss);
+ _bss_end = .;
+ *(COMMON);
+ }
+
+} \ No newline at end of file