OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [cris/] [cris.ld] - Rev 1765

Compare with Previous | Blame | View Log

/* ld script to make the Linux/CRIS kernel
 * Authors: Bjorn Wesen (bjornw@axis.com)
 *
 * It is VERY DANGEROUS to fiddle around with the symbols in this
 * script. It is for example quite vital that all generated sections
 * that are used are actually named here, otherwise the linker will
 * put them at the end, where the init stuff is which is FREED after
 * the kernel has booted. 
 */     

SECTIONS
{
        . = @CONFIG_ETRAX_DRAM_VIRTUAL_BASE@;
        dram_start = .;
        ibr_start = .;
        . = . + 0x4000; /* see head.S and pages reserved at the start */

        _text = .;                    /* Text and read-only data */
        text_start = .;              /* lots of aliases */
        _stext = .;
        __stext = .;
        .text : {
                *(.text)
                *(.fixup)
                *(.text.__*)
        }
        .text.lock : { *(.text.lock) }        /* out-of-line lock text */

        _etext = . ;                  /* End of text section */ 
        __etext = .;

        .rodata : { *(.rodata) *(.rodata.__*) }
        .kstrtab : { *(.kstrtab) }

        . = ALIGN(4);                /* Exception table */
        __start___ex_table = .;
        __ex_table : { *(__ex_table) }
        __stop___ex_table = .;

        __start___ksymtab = .;        /* Kernel symbol table */
        __ksymtab : { *(__ksymtab) }
        __stop___ksymtab = .;

        . = ALIGN (4);
        ___data_start = . ;
        __Sdata = . ;
        .data : {                     /* Data */
                *(.data)
        }
        __edata = . ;                 /* End of data section */
        _edata = . ;

        . = ALIGN(8192);              /* init_task and stack, must be aligned */
        .data.init_task : { *(.data.init_task) }

        . = ALIGN(8192);              /* Init code and data */
        __init_begin = .;
        .text.init : { *(.text.init) }
        .data.init : { *(.data.init) }
        . = ALIGN(16);
        __setup_start = .;
        .setup.init : { *(.setup.init) }
        __setup_end = .;
        .initcall.init : {
                __initcall_start = .;
                *(.initcall.init);
                __initcall_end = .;

                /* We fill to the next page, so we can discard all init
                   pages without needing to consider what payload might be
                   appended to the kernel image.  */
                FILL (0);
                . = ALIGN (8192);
        }
        __vmlinux_end = .;            /* last address of the physical file */
        __init_end = .;

        __data_end = . ;              /* Move to _edata ? */
        __bss_start = .;              /* BSS */
        .bss : {
                *(COMMON)
                *(.bss)
        }

        . =  ALIGN (0x20);
        _end = .;
        __end = .;

        /* Sections to be discarded */
        /DISCARD/ : {
                *(.text.exit)
                *(.data.exit)
                *(.exitcall.exit)
        }

        dram_end = dram_start + @CONFIG_ETRAX_DRAM_SIZE_M@*1024*1024;
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.