mirror of
https://github.com/johndoe6345789/MetalOS.git
synced 2026-05-03 10:04:58 +00:00
e66ef697f7
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
32 lines
483 B
Plaintext
32 lines
483 B
Plaintext
/* MetalOS Kernel Linker Script */
|
|
|
|
ENTRY(kernel_main)
|
|
|
|
SECTIONS {
|
|
/* Kernel loaded at 1MB mark */
|
|
. = 0x100000;
|
|
|
|
.text ALIGN(4K) : {
|
|
*(.text .text.*)
|
|
}
|
|
|
|
.rodata ALIGN(4K) : {
|
|
*(.rodata .rodata.*)
|
|
}
|
|
|
|
.data ALIGN(4K) : {
|
|
*(.data .data.*)
|
|
}
|
|
|
|
.bss ALIGN(4K) : {
|
|
*(COMMON)
|
|
*(.bss .bss.*)
|
|
}
|
|
|
|
/* Discard debug info */
|
|
/DISCARD/ : {
|
|
*(.comment)
|
|
*(.eh_frame)
|
|
}
|
|
}
|