diff options
Diffstat (limited to 'linker.ld')
-rw-r--r-- | linker.ld | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/linker.ld b/linker.ld new file mode 100644 index 0000000..dd7c64c --- /dev/null +++ b/linker.ld @@ -0,0 +1,24 @@ +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) + } +} |