Prex Home / Browse Source - Prex Version: 0.9.0

root/bsp/hal/arm/arch/kern.ld

/* [<][>][^][v][top][bottom][index][help] */
/*
 * Linker script for kernel
 */
INCLUDE config.ld
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(kernel_start)
PHDRS
{
        text PT_LOAD FILEHDR PHDRS;
        data PT_LOAD;
}
SECTIONS
{
        . = CONFIG_KERNEL_TEXT + SIZEOF_HEADERS;

        .text : {
                *(.text)
                *(.glue_7)
                *(.glue_7t)
        } : text = 0xff

        . = ALIGN(4);
        .rodata : {
                *(.rodata)
                *(.rodata.*)
        } : text

        .data ALIGN(4) : {
                *(.data)
        } : data = 0xff

        . = ALIGN(4);
        __bss = . ;
        .bss .    : {
                *(.bss)
                *(COMMON)
        }
        . = ALIGN(4);
        __end = . ;

        /DISCARD/ : { *(.comment .note) }
}

/* [<][>][^][v][top][bottom][index][help] */