Add i368-elf-gcc v5.4 crosscompiler

This commit is contained in:
2026-02-23 19:58:18 +01:00
parent 25cb90296f
commit 6ab17c98e9
6 changed files with 212 additions and 74 deletions

View File

@ -18,6 +18,7 @@ SECTIONS {
/* Code and readonly data */
.text : {
/* fill gaps with int3 opcode to detect invalid jumps */
/* TODO: This crashes bochs */
FILL(0xcc)
/* multiboot header */
@ -55,9 +56,20 @@ SECTIONS {
KEEP (*(".startup_stack"))
KEEP (*(".kernel_stack"))
*(".data*")
*(COMMON);
}
/* Uninitialized data */
.bss : {
_sbss = .;
*(.bss*)
*(COMMON)
_ebss = .;
}
/* Align and mark end of all sections — heap starts here */
. = ALIGN(4096);
_end = .;
/* Memory-mapped I/O APIC */
_sioapic = 0xFEC00000;
ioapic = 0xFEC00000;