Files
JPOS/linker.ld
2026-04-05 03:16:50 +02:00

25 lines
478 B
Plaintext

ENTRY(_start)
KERNEL_VIRT_BASE = 0xC0000000;
KERNEL_PHYS_BASE = 0x00100000;
SECTIONS {
. = KERNEL_VIRT_BASE;
.text : AT(KERNEL_PHYS_BASE) {
*(.text)
}
.rodata : AT(KERNEL_PHYS_BASE + (ADDR(.rodata) - KERNEL_VIRT_BASE)) {
*(.rodata)
}
.data : AT(KERNEL_PHYS_BASE + (ADDR(.data) - KERNEL_VIRT_BASE)) {
*(.data)
}
.bss : AT(KERNEL_PHYS_BASE + (ADDR(.bss) - KERNEL_VIRT_BASE)) {
*(COMMON)
*(.bss)
}
}