Files
ISCCS-1/linker.ld
2026-04-14 10:04:20 -04:00

22 lines
506 B
Plaintext

ENTRY(_start)
OUTPUT_FORMAT("binary")
SECTIONS
{
/* Start at the BIOS boot address */
. = 0x7c00;
.text : {
boot.o(.text) /* Ensure bootloader is at the very beginning */
*(.text) /* Compiled C code follows */
*(.rodata) /* REQUIRED: Text strings live here */
}
.data : { *(.data) }
.bss : { *(.bss) }
/* Place the 0xAA55 signature exactly at the end of the first 512 bytes */
.sig : AT(0x7dfe) {
SHORT(0xaa55);
}
}