boot/boot.ld

13 lines
260 B
Plaintext
Raw Permalink Normal View History

2024-03-19 09:22:55 -05:00
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
}