Files
JPOS/linker.ld

29 lines
516 B
Plaintext

ENTRY(_start)
KERNEL_VIRT_BASE = 0xC0000000;
KERNEL_PHYS_BASE = 0x00100000;
SECTIONS {
. = KERNEL_VIRT_BASE;
kernel_start = .;
.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)
}
kernel_end = .;
}