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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [apps/] [spiflash/] [spiflash-program.ld] - Blame information for rev 707

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 349 julius
/*STARTUP(../support/crt0.o)*/
2
/*ENTRY()*/
3
OUTPUT_ARCH(or32)
4
/*GROUP()*/
5
SEARCH_DIR(.)
6
__DYNAMIC  =  0;
7
 
8
MEMORY
9
{
10
        vectors : ORIGIN = 0, LENGTH = 0x1000
11
        ram     : ORIGIN = 0x1000, LENGTH = (8M - 0x1000)
12
}
13
 
14
 
15
/*
16
 * Allocate the stack to be at the top of memory, since the stack
17
 * grows down.
18
 */
19 528 julius
_min_stack      = 0x2000;   /* 8K - minimum stack space to reserve */
20 349 julius
 
21
SECTIONS
22
{
23
        .vectors :
24
        {
25
                *(.vectors)
26
        } > vectors
27
 
28
        .text : {
29
                stext = .;
30
                _stext = .;
31
                *(.text)
32
                _etext  =  .;
33
                __CTOR_LIST__ = .;
34
                LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
35
                *(.ctors)
36
                LONG(0)
37
                __CTOR_END__ = .;
38
                __DTOR_LIST__ = .;
39
                LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
40
                *(.dtors)
41
                LONG(0)
42
                __DTOR_END__ = .;
43
                *(.lit)
44
                *(.shdata)
45
                _endtext = .;
46
        }  > ram
47
 
48
        .rodata : {
49
                *(.rodata);
50
                *(.rodata.*)
51
        } > ram
52
 
53
        /* Section we'll use for storing the program to load into the SPI flash */
54
 
55
        .shbss :
56
        {
57
                *(.shbss)
58
        } > ram
59
 
60
        .talias :
61
        {
62
        }  > ram
63
 
64
        .data : {
65
                sdata  =  .;
66
                _sdata  =  .;
67
                *(.data)
68
                edata  =  .;
69
                _edata  =  .;
70
        } > ram
71
 
72
        .bss SIZEOF(.data) + ADDR(.data) :
73
        {
74 505 julius
                _bss_start = ALIGN(0x8);
75 349 julius
                *(.bss)
76
                *(COMMON)
77 505 julius
                _bss_end = .;
78 349 julius
        }
79
 
80 528 julius
        /* ensure there is enough room for stack */
81
        .stack (NOLOAD): {
82
                . = ALIGN(4);
83
                sstack = . ;
84
                _sstack = . ;
85
                . = . + _min_stack ;
86
                . = ALIGN(4);
87
                stack = . ;
88
                _stack = . ;
89
                estack = . ;
90
                _estack = . ;
91
        } > ram
92
 
93
        .spiprogram : {
94
                    spiprogram_data = .;
95
                    _spiprogram_data = .;
96
                    *(.spiprogram)
97
                    end_spiprogram_data = .;
98
                    _end_spiprogram_data = .;
99
 
100
        } > ram
101
 
102 349 julius
        .stab  0 (NOLOAD) :
103
        {
104
                [ .stab ]
105
        }
106
 
107
        .stabstr  0 (NOLOAD) :
108
        {
109
                [ .stabstr ]
110
        }
111
}

powered by: WebSVN 2.1.0

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