diff options
| author | Alexey Gavrilov <rebovas@yahoo.com> | 2023-08-08 18:38:07 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <rebovas@yahoo.com> | 2023-08-08 18:38:07 +0700 |
| commit | 06d05938cc828901703112b99740c2e90a392b88 (patch) | |
| tree | 665168f9bf0ec29378e954e625bf5dbbf7475371 /kernel/linker.ld | |
First commit
Diffstat (limited to 'kernel/linker.ld')
| -rw-r--r-- | kernel/linker.ld | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/kernel/linker.ld b/kernel/linker.ld new file mode 100644 index 0000000..e490e6a --- /dev/null +++ b/kernel/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) + } +} |
