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

Subversion Repositories openrisc

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

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
/*
13
 * Allocate the stack to be at the top of memory, since the stack
14
 * grows down.
15
 */
16
PROVIDE (stack = 128K - 4);
17
PROVIDE (_stack = 128K - 4);
18
 
19
SECTIONS
20
{
21
        .vectors :
22
        {
23
                *(.vectors)
24
        } > vectors
25
 
26
        .text : {
27
                _stext = .;
28
                *(.text)
29
                _etext  =  .;
30
                __CTOR_LIST__ = .;
31
                LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
32
                *(.ctors)
33
                LONG(0)
34
                __CTOR_END__ = .;
35
                __DTOR_LIST__ = .;
36
                LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
37
                *(.dtors)
38
                LONG(0)
39
                __DTOR_END__ = .;
40
                *(.lit)
41
                *(.shdata)
42
                _endtext = .;
43
        }  > ram
44
 
45
        .rodata : {
46
                *(.rodata);
47
                *(.rodata.*)
48
        } > ram
49
 
50
        .shbss :
51
        {
52
                *(.shbss)
53
        } > ram
54
 
55
        .talias :
56
        {
57
        }  > ram
58
 
59
        .data : {
60
                sdata  =  .;
61
                _sdata  =  .;
62
                *(.data)
63
                edata  =  .;
64
                _edata  =  .;
65
        } > ram
66
 
67
        .bss SIZEOF(.data) + ADDR(.data) :
68
        {
69
                sbss = . ;
70
                _sbss = . ;
71
                __bss_start = ALIGN(0x8);
72
                ___bss_start = ALIGN(0x8);
73
                *(.bss)
74
                *(COMMON)
75
                end = ALIGN(0x8);
76
                _end = ALIGN(0x8);
77
                __end = ALIGN(0x8);
78
                ebss = .;
79
                _ebss = .;
80
        }
81
 
82
        .stab  0 (NOLOAD) :
83
        {
84
                [ .stab ]
85
        }
86
 
87
        .stabstr  0 (NOLOAD) :
88
        {
89
                [ .stabstr ]
90
        }
91
}

powered by: WebSVN 2.1.0

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