os/boot/boot.ld

13 lines
260 B
Plaintext
Raw Normal View History

2023-03-25 08:34:42 -05:00
OUTPUT_FORMAT(binary)
MEMORY {
bootsector : ORIGIN = 0, LENGTH = 512
free_ram : ORIGIN = 512, LENGTH = (4096 - 512)
}
2022-10-08 17:55:21 -05:00
SECTIONS {
. = 0x0;
2023-03-25 08:34:42 -05:00
.text : { *(.text) . = 512; } > bootsector
.data : { *(.data) } > bootsector
.bss : { *(.bss) } > free_ram
2022-10-08 17:55:21 -05:00
}