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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [drivers/] [or1200/] [link.ld] - Blame information for rev 439

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

Line No. Rev Author Line
1 349 julius
OUTPUT_ARCH(or32)
2
SEARCH_DIR(.)
3
__DYNAMIC  =  0;
4
 
5
MEMORY
6
{
7
        vectors : ORIGIN = 0, LENGTH = 0x1000
8
        ram     : ORIGIN = 0x1000, LENGTH = (8M - 0x1000)
9
}
10
 
11
 
12 439 julius
/* Stack information variables */
13
_min_stack      = 0x2000;   /* 8K - minimum stack space to reserve */
14 349 julius
 
15 439 julius
 
16 349 julius
SECTIONS
17
{
18
        .vectors :
19
        {
20
                *(.vectors)
21
        } > vectors
22
 
23
        .text : {
24
                _stext = .;
25
                *(.text)
26
                _etext  =  .;
27
                __CTOR_LIST__ = .;
28
                LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
29
                *(.ctors)
30
                LONG(0)
31
                __CTOR_END__ = .;
32
                __DTOR_LIST__ = .;
33
                LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
34
                *(.dtors)
35
                LONG(0)
36
                __DTOR_END__ = .;
37
                *(.lit)
38
                *(.shdata)
39
                _endtext = .;
40
        }  > ram
41
 
42
        .rodata : {
43
                *(.rodata);
44
                *(.rodata.*)
45
        } > ram
46
 
47
        .shbss :
48
        {
49
                *(.shbss)
50
        } > ram
51
 
52
        .talias :
53
        {
54
        }  > ram
55
 
56
        .data : {
57
                sdata  =  .;
58
                _sdata  =  .;
59
                *(.data)
60
                edata  =  .;
61
                _edata  =  .;
62
        } > ram
63
 
64
        .bss SIZEOF(.data) + ADDR(.data) :
65
        {
66
                sbss = . ;
67
                _sbss = . ;
68
                __bss_start = ALIGN(0x8);
69
                ___bss_start = ALIGN(0x8);
70
                *(.bss)
71
                *(COMMON)
72
                end = ALIGN(0x8);
73
                _end = ALIGN(0x8);
74
                __end = ALIGN(0x8);
75
                ebss = .;
76
                _ebss = .;
77 439 julius
        } > ram
78 349 julius
 
79 439 julius
        /* ensure there is enough room for stack */
80
        .stack (NOLOAD): {
81
                . = ALIGN(4);
82
                sstack = . ;
83
                _sstack = . ;
84
                . = . + _min_stack ;
85
                . = ALIGN(4);
86
                stack = . ;
87
                _stack = . ;
88
                estack = . ;
89
                _estack = . ;
90
        } > ram
91
 
92 349 julius
        .stab  0 (NOLOAD) :
93
        {
94
                [ .stab ]
95
        }
96
 
97
        .stabstr  0 (NOLOAD) :
98
        {
99
                [ .stabstr ]
100
        }
101
}

powered by: WebSVN 2.1.0

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