Files
JPOS/linker.ld

29 lines
516 B
Plaintext
Raw Permalink Normal View History

2026-02-26 00:06:36 +01:00
ENTRY(_start)
2026-04-05 03:16:50 +02:00
KERNEL_VIRT_BASE = 0xC0000000;
KERNEL_PHYS_BASE = 0x00100000;
2026-02-26 00:06:36 +01:00
SECTIONS {
2026-04-05 03:16:50 +02:00
. = KERNEL_VIRT_BASE;
2026-02-26 00:06:36 +01:00
kernel_start = .;
2026-04-05 03:16:50 +02:00
.text : AT(KERNEL_PHYS_BASE) {
*(.text)
}
2026-02-26 00:06:36 +01:00
2026-04-05 03:16:50 +02:00
.rodata : AT(KERNEL_PHYS_BASE + (ADDR(.rodata) - KERNEL_VIRT_BASE)) {
*(.rodata)
}
2026-02-26 00:06:36 +01:00
2026-04-05 03:16:50 +02:00
.data : AT(KERNEL_PHYS_BASE + (ADDR(.data) - KERNEL_VIRT_BASE)) {
*(.data)
}
2026-02-26 00:06:36 +01:00
2026-04-05 03:16:50 +02:00
.bss : AT(KERNEL_PHYS_BASE + (ADDR(.bss) - KERNEL_VIRT_BASE)) {
*(COMMON)
*(.bss)
}
kernel_end = .;
2026-02-26 00:06:36 +01:00
}