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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [apps/] [cfi_ctrl_programmer/] [cfi_ctrl_programmer.ld] - Blame information for rev 868

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

Line No. Rev Author Line
1 655 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
_min_stack      = 0x2000;   /* 8K - minimum stack space to reserve */
20
 
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 flash */
54
        .shbss :
55
        {
56
                *(.shbss)
57
        } > ram
58
 
59
        .talias :
60
        {
61
        }  > ram
62
 
63
        .data : {
64
                sdata  =  .;
65
                _sdata  =  .;
66
                *(.data)
67
                edata  =  .;
68
                _edata  =  .;
69
        } > ram
70
 
71
        .bss SIZEOF(.data) + ADDR(.data) :
72
        {
73
                _bss_start = ALIGN(0x8);
74
                *(.bss)
75
                *(COMMON)
76
                _bss_end = .;
77
        }
78
 
79
 
80
        /* 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
        . = . + 0x2000 ;
94
        .userprogram : {
95
            . = ALIGN(4);
96
            userprogram_data = .;
97
            _userprogram_data = .;
98
            *(.userprogram)
99
            end_userprogram_data = .;
100
            _end_userprogram_data = .;
101
        } > ram
102
 
103
 
104
        .stab  0 (NOLOAD) :
105
        {
106
                [ .stab ]
107
        }
108
 
109
        .stabstr  0 (NOLOAD) :
110
        {
111
                [ .stabstr ]
112
        }
113
}

powered by: WebSVN 2.1.0

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