diff options
Diffstat (limited to 'Source/Kernel/Kernel.ld')
-rw-r--r-- | Source/Kernel/Kernel.ld | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Source/Kernel/Kernel.ld b/Source/Kernel/Kernel.ld new file mode 100644 index 0000000..dd6add0 --- /dev/null +++ b/Source/Kernel/Kernel.ld @@ -0,0 +1,38 @@ +ENTRY (loader) + +SECTIONS{ + . = 0x00100000; + + .setup : { + *(.setup) + } + + . += 0xC0000000; + + .text : AT(ADDR(.text) - 0xC0000000) { + *(.text) + } + + .rodata ALIGN (0x1000) : AT(ADDR(.rodata) - 0xC0000000) { + *(.rodata) + } + + .data ALIGN (0x1000) : AT(ADDR(.data) - 0xC0000000) { + start_ctors = .; + *(.ctor*) + end_ctors = .; + start_dtors = .; + *(.dtor*) + end_dtors = .; + *(.data) + } + + .bss : AT(ADDR(.bss) - 0xC0000000) { + sbss = .; + *(COMMON) + *(.bss) + ebss = .; + } + + end = .; _end = .; __end = .; +} |