22 lines
506 B
Plaintext
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);
|
|
}
|
|
} |