freeze dos progress, maybe some day

This commit is contained in:
veclavtlica
2026-10-10 19:34:22 +03:00
parent fd54d48aca
commit 1ada1a12cc
11 changed files with 262 additions and 53 deletions
+41
View File
@@ -0,0 +1,41 @@
SECTIONS
{
. = 0x00000;
/* TODO: Make sure WDOSX.DX is placed first, before .text */
textstart = .;
.text ALIGN(16) : {
*(.text*)
}
textend = .;
/* We will need to manually map this. */
/* At runtime we can figure this out from mapped code segment. */
datastart = .;
.rodata : {
*(.rodata*)
}
.data : {
*(.data*)
}
dataend = .;
/* TODO: We need to manually map this, as loader is incapable of doing so with flat binary. */
bssstart = .;
.bss : {
*(.bss*)
*(COMMON)
}
bssend = .;
/* Will be discarded with objcopy. */
.shstrtab : {
*(.shstrtab*)
}
/* Discard bloat and unnecessary ELF sections */
/DISCARD/ : {
*(*)
}
}