No way it works...

This commit is contained in:
2025-11-18 22:27:45 +01:00
commit 78177c0a07
17 changed files with 109146 additions and 0 deletions

40
src/link.ld Normal file
View File

@@ -0,0 +1,40 @@
/*
* link.ld
*/
OUTPUT_FORMAT(elf32-i386)
ENTRY(start)
SECTIONS
{
. = 0x100000;
.text : {
*(.text)
*(.text.*)
*(.rodata)
*(.rodata.*)
}
.data : {
*(.data)
*(.data.*)
}
.bss : {
*(.bss)
*(.bss.*)
*(COMMON)
}
/* Heap for malloc */
. = ALIGN(4096);
__heap_start = .;
. = . + 0x100000; /* 1MB heap */
__heap_end = .;
/* Stack grows downward from high memory */
. = ALIGN(4096);
__stack_bottom = .;
. = . + 0x10000; /* 64KB stack */
__stack_top = .;
}