feat(kernel): genesis of Airlys 64-bit sovereign OS kernel (Phase 1)
This commit is contained in:
commit
7210b60fc7
15 files changed
+746
No files matched your search
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Airlys Kernel Linker Script (x86_64 ELF)
|
||||
* Aira Group of Technology
|
||||
*/
|
||||
|
||||
ENTRY(_start)
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
/* Load kernel at 1MB (standard Multiboot load boundary) */
|
||||
. = 1M;
|
||||
|
||||
/* Multiboot Header & Executable Code */
|
||||
.text : ALIGN(4K)
|
||||
{
|
||||
KEEP(*(.multiboot))
|
||||
*(.text .text.*)
|
||||
}
|
||||
|
||||
/* Read-Only Data (GDT, string constants) */
|
||||
.rodata : ALIGN(4K)
|
||||
{
|
||||
*(.rodata .rodata.*)
|
||||
}
|
||||
|
||||
/* Initialized Data */
|
||||
.data : ALIGN(4K)
|
||||
{
|
||||
*(.data .data.*)
|
||||
}
|
||||
|
||||
/* Uninitialized Data (BSS, Page Tables, Stack) */
|
||||
.bss : ALIGN(4K)
|
||||
{
|
||||
*(COMMON)
|
||||
*(.bss .bss.*)
|
||||
}
|
||||
|
||||
/* Discard unused unwind & debug sections */
|
||||
/DISCARD/ :
|
||||
{
|
||||
*(.eh_frame)
|
||||
*(.comment)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user