os/boot/boot.ld
2023-03-25 08:34:42 -05:00

13 lines
260 B
Plaintext

OUTPUT_FORMAT(binary)
MEMORY {
bootsector : ORIGIN = 0, LENGTH = 512
free_ram : ORIGIN = 512, LENGTH = (4096 - 512)
}
SECTIONS {
. = 0x0;
.text : { *(.text) . = 512; } > bootsector
.data : { *(.data) } > bootsector
.bss : { *(.bss) } > free_ram
}