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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [apps/] [spiflash/] [spiflash-program.ld] - Diff between revs 505 and 528

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 505 Rev 528
/*STARTUP(../support/crt0.o)*/
/*STARTUP(../support/crt0.o)*/
/*ENTRY()*/
/*ENTRY()*/
OUTPUT_ARCH(or32)
OUTPUT_ARCH(or32)
/*GROUP()*/
/*GROUP()*/
SEARCH_DIR(.)
SEARCH_DIR(.)
__DYNAMIC  =  0;
__DYNAMIC  =  0;
MEMORY
MEMORY
{
{
        vectors : ORIGIN = 0, LENGTH = 0x1000
        vectors : ORIGIN = 0, LENGTH = 0x1000
        ram     : ORIGIN = 0x1000, LENGTH = (8M - 0x1000)
        ram     : ORIGIN = 0x1000, LENGTH = (8M - 0x1000)
}
}
/*
/*
 * Allocate the stack to be at the top of memory, since the stack
 * Allocate the stack to be at the top of memory, since the stack
 * grows down.
 * grows down.
 */
 */
PROVIDE (_stack = 64K - 4);
_min_stack      = 0x2000;   /* 8K - minimum stack space to reserve */
PROVIDE (__stack = 64K - 4);
 
 
 
SECTIONS
SECTIONS
{
{
        .vectors :
        .vectors :
        {
        {
                *(.vectors)
                *(.vectors)
        } > vectors
        } > vectors
        .text : {
        .text : {
                stext = .;
                stext = .;
                _stext = .;
                _stext = .;
                *(.text)
                *(.text)
                _etext  =  .;
                _etext  =  .;
                __CTOR_LIST__ = .;
                __CTOR_LIST__ = .;
                LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
                LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
                *(.ctors)
                *(.ctors)
                LONG(0)
                LONG(0)
                __CTOR_END__ = .;
                __CTOR_END__ = .;
                __DTOR_LIST__ = .;
                __DTOR_LIST__ = .;
                LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
                LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
                *(.dtors)
                *(.dtors)
                LONG(0)
                LONG(0)
                __DTOR_END__ = .;
                __DTOR_END__ = .;
                *(.lit)
                *(.lit)
                *(.shdata)
                *(.shdata)
                _endtext = .;
                _endtext = .;
        }  > ram
        }  > ram
        .rodata : {
        .rodata : {
                *(.rodata);
                *(.rodata);
                *(.rodata.*)
                *(.rodata.*)
        } > ram
        } > ram
        /* Section we'll use for storing the program to load into the SPI flash */
        /* Section we'll use for storing the program to load into the SPI flash */
        .spiprogram : {
 
                    spiprogram_data = .;
 
                    _spiprogram_data = .;
 
                    *(.spiprogram)
 
                    end_spiprogram_data = .;
 
                    _end_spiprogram_data = .;
 
 
 
        } > ram
 
 
 
        .shbss :
        .shbss :
        {
        {
                *(.shbss)
                *(.shbss)
        } > ram
        } > ram
        .talias :
        .talias :
        {
        {
        }  > ram
        }  > ram
        .data : {
        .data : {
                sdata  =  .;
                sdata  =  .;
                _sdata  =  .;
                _sdata  =  .;
                *(.data)
                *(.data)
                edata  =  .;
                edata  =  .;
                _edata  =  .;
                _edata  =  .;
        } > ram
        } > ram
        .bss SIZEOF(.data) + ADDR(.data) :
        .bss SIZEOF(.data) + ADDR(.data) :
        {
        {
                _bss_start = ALIGN(0x8);
                _bss_start = ALIGN(0x8);
                *(.bss)
                *(.bss)
                *(COMMON)
                *(COMMON)
                _bss_end = .;
                _bss_end = .;
        }
        }
 
 
 
        /* ensure there is enough room for stack */
 
        .stack (NOLOAD): {
 
                . = ALIGN(4);
 
                sstack = . ;
 
                _sstack = . ;
 
                . = . + _min_stack ;
 
                . = ALIGN(4);
 
                stack = . ;
 
                _stack = . ;
 
                estack = . ;
 
                _estack = . ;
 
        } > ram
 
 
 
        .spiprogram : {
 
                    spiprogram_data = .;
 
                    _spiprogram_data = .;
 
                    *(.spiprogram)
 
                    end_spiprogram_data = .;
 
                    _end_spiprogram_data = .;
 
 
 
        } > ram
 
 
        .stab  0 (NOLOAD) :
        .stab  0 (NOLOAD) :
        {
        {
                [ .stab ]
                [ .stab ]
        }
        }
        .stabstr  0 (NOLOAD) :
        .stabstr  0 (NOLOAD) :
        {
        {
                [ .stabstr ]
                [ .stabstr ]
        }
        }
}
}
 
 

powered by: WebSVN 2.1.0

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