init version

This commit is contained in:
2026-02-20 22:17:31 +01:00
commit c4c1a4350c
28 changed files with 755 additions and 0 deletions

54
.cargo/linker-vba-i386.ld Normal file
View File

@@ -0,0 +1,54 @@
OUTPUT_FORMAT("binary")
ENTRY(_start)
SECTIONS {
. = 0x500;
_stack_start = .;
. = 0x7c00;
_stack_end = .;
_mbr_start = .;
. = 0x7c00 + 512;
_vba_start = .;
. = 0x7c00 + 512 + 0x0E;
_vba_BPB_RsvdSecCnt;
. = 0x7c00 + 512 + 0x10;
_vba_BPB_NumFATs;
. = 0x7c00 + 512 + 0x24;
_vba_BPB_FATSz32;
. = 0x7c00 + 512 + 0x2C;
_vba_BPB_RootClus;
. = 0x7c00 + 512 + 0x5a;
_second_stage_start = .;
.boot :
{
*(.boot .boot.*)
}
.text :
{
*(.text .text.*)
}
.rodata :
{
*(.rodata .rodata.*)
}
.data :
{
*(.rodata .rodata.*)
*(.data .data.*)
*(.got .got.*)
}
_second_stage_end = .;
. = 0x7c00 + 512 + 510;
.end_marker :
{
SHORT(0xaa55)
}
_real_second_stage_start = .;
}