diff options
| author | Clément Sibille <claymeuns@protonmail.com> | 2021-10-04 13:30:31 +0200 |
|---|---|---|
| committer | Clément Sibille <claymeuns@protonmail.com> | 2021-10-04 13:30:31 +0200 |
| commit | 25a24b8b167a7cb28c622039ea30e4afd166cd83 (patch) | |
| tree | 811a6a0e46234ac6fc7078030b0221db8d85f5b6 /boot/linker.ld | |
| parent | 84ac89b379da880468d2bb1396eb4773b48b6a92 (diff) | |
Make kernel print hello world using the VGA text buffer
Diffstat (limited to 'boot/linker.ld')
| -rw-r--r-- | boot/linker.ld | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/boot/linker.ld b/boot/linker.ld new file mode 100644 index 0000000..a725f4e --- /dev/null +++ b/boot/linker.ld @@ -0,0 +1,28 @@ +ENTRY(_start) + +SECTIONS +{ + . = 1M; + + .text BLOCK(4K) : ALIGN(4K) + { + *(.multiboot) + *(.text) + } + + .rodata BLOCK(4K) : ALIGN(4K) + { + *(.rodata) + } + + .data BLOCK(4K) : ALIGN(4K) + { + *(.data) + } + + .bss BLOCK(4K) : ALIGN(4K) + { + *(COMMON) + *(.bss) + } +}
\ No newline at end of file |
