You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
675 B
Plaintext
44 lines
675 B
Plaintext
OUTPUT_FORMAT("binary")
|
|
|
|
. = 0x8200;
|
|
|
|
SECTIONS {
|
|
.prelude : {
|
|
KEEP(*(.prelude))
|
|
*(.prelude)
|
|
}
|
|
|
|
.text : {
|
|
*(.text)
|
|
*(.text.*)
|
|
}
|
|
|
|
.data : {
|
|
*(.data)
|
|
*(.data.*)
|
|
}
|
|
|
|
.bss : {
|
|
*(.bss)
|
|
*(.bss.*)
|
|
}
|
|
|
|
.rodata : {
|
|
*(.rodata)
|
|
*(.rodata.*)
|
|
}
|
|
|
|
.magic : {
|
|
/* Magic bytes the prelude uses to make sure it's loaded the subsequent sectors correctly. */
|
|
LONG(0x544e4150)
|
|
}
|
|
|
|
boot1_magic = ADDR(.magic);
|
|
|
|
/* Define a symbol for the total length of the binary, so the prelude knows how many blocks to
|
|
* load from disk.
|
|
*/
|
|
boot1_bin_len = . - 0x8200;
|
|
boot1_bin_sectors = (boot1_bin_len + 511) / 512;
|
|
}
|