bootsector_c/linker.ld
2024-10-19 22:09:19 +05:00

27 lines
445 B
Plaintext

ENTRY (_start)
OUTPUT_FORMAT (binary)
SECTIONS
{
. = 0x7c00;
.text : { boot.o(.text)
*(.text)
}
.rodata : { *(.rodata)
}
.data : { *(.data)
}
. = 0x7DFE;
.bootsig : {
SHORT(0xaa55);
}
.bss : { *(.bss)
}
. = ALIGN (0x200);
lit = .;
/DISCARD/ : { *(.eh_frame)
*(.comment)
*(.note.GNU-stack)
}
}