diff options
| author | Arslaan Pathan <[email protected]> | 2026-03-17 21:43:31 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-03-17 21:43:31 +1300 |
| commit | 94b61705a911aebb090ff3e1a760ad4dbeecd0c6 (patch) | |
| tree | 8247f6b9e81e7bcfcb6a96f831d626f8acbd839b /linker.ld | |
| parent | 6135c121ced6d4879a30cc7a6a5bed1a2d0975cd (diff) | |
| download | FrenchToastOS-94b61705a911aebb090ff3e1a760ad4dbeecd0c6.tar.xz FrenchToastOS-94b61705a911aebb090ff3e1a760ad4dbeecd0c6.zip | |
A few things
Diffstat (limited to 'linker.ld')
| -rw-r--r-- | linker.ld | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/linker.ld b/linker.ld new file mode 100644 index 0000000..e56537d --- /dev/null +++ b/linker.ld @@ -0,0 +1,28 @@ +ENTRY(_start) + +SECTIONS +{ + . = 2M; + + .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) + } +} |
