nothing works but time to update
This commit is contained in:
22
linker.ld
Normal file
22
linker.ld
Normal file
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user