Newer
Older
tree-os / linker.ld
/* Script for -z combreloc -z separate-code */
/* Copyright (C) 2014-2020 Free Software Foundation, Inc.
   Copying and distribution of this script, with or without modification,
   are permitted in any medium without royalty provided the copyright
   notice and this notice are preserved.  */
/* file generated with ld --verbose */
OUTPUT_ARCH(i386)
ENTRY(_start)

SECTIONS {
    . = 1M;

    .multiboot : {
        *(.multiboot)
    }

    .text : {
        *(.text)
    }

    .bss : {
        *(.bss)
    }

    .rodata : {
        *(.rodata)
    }

    .data : {
         *(.data)
         kernelEnd = .;
         LONG(endOfKernel)
    }

    endOfKernel = .;
}