diff options
| author | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-08-05 14:33:51 +0200 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-08-05 14:33:51 +0200 |
| commit | bd7d4366b6643b5c6cd04f40dd32f5d9c9575fd6 (patch) | |
| tree | 92429e897be007d46c8f063a39a986df2124111a /kernel/src/kernel.ld | |
| parent | be3274c49d0ca5e31daa855c4c109d830fdead67 (diff) | |
organised files; switched to recursive make
Diffstat (limited to 'kernel/src/kernel.ld')
| -rw-r--r-- | kernel/src/kernel.ld | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/kernel/src/kernel.ld b/kernel/src/kernel.ld new file mode 100644 index 0000000..da5c87c --- /dev/null +++ b/kernel/src/kernel.ld @@ -0,0 +1,39 @@ +ENTRY(_start) + +SECTIONS +{ + . = 1M; + + .boot BLOCK(4K) : ALIGN(4K) + { + KEEP(*(.multiboot_header)) + } + + .text BLOCK(4K) : ALIGN(4K) + { + *(.text) + } + + .rodata BLOCK(4K) : ALIGN(4K) + { + *(.rodata) + } + + .data BLOCK(4K) : ALIGN(4K) + { + *(.data) + } + + .bss BLOCK(4K) : ALIGN(4K) + { + *(COMMON) + *(.bss) + } + + /DISCARD/ : + { + *(.comment.*) + *(.note.*) + *(.eh_frame) + } +} |
