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 | Show entire file | Details | Blame | View Log

Rev 505 Rev 528
Line 14... Line 14...
 
 
/*
/*
 * 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 :
        {
        {
Line 50... Line 49...
                *(.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
Line 84... Line 75...
                *(.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 ]
        }
        }
 
 

powered by: WebSVN 2.1.0

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