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

Subversion Repositories openrisc

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

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 475 julius
        .bss :
65 349 julius
        {
66 475 julius
                _bss_start = .;
67 349 julius
                *(.bss)
68
                *(COMMON)
69 475 julius
                _bss_end = .;
70 439 julius
        } > ram
71 349 julius
 
72 439 julius
        /* ensure there is enough room for stack */
73
        .stack (NOLOAD): {
74
                . = ALIGN(4);
75 530 julius
                . = . + _min_stack ;
76 439 julius
                . = ALIGN(4);
77
                stack = . ;
78
                _stack = . ;
79
        } > ram
80
 
81 349 julius
        .stab  0 (NOLOAD) :
82
        {
83
                [ .stab ]
84
        }
85
 
86
        .stabstr  0 (NOLOAD) :
87
        {
88
                [ .stabstr ]
89
        }
90
}

powered by: WebSVN 2.1.0

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