From ca1e725b0dc9b10997897dd2ac6d44028601d9bb Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 19 Apr 2021 19:06:28 +0200 Subject: Init sources --- src/linker.ld | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/linker.ld (limited to 'src/linker.ld') 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 -- cgit v1.2.3