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

Subversion Repositories mpdma

[/] [mpdma/] [trunk/] [TestApp_Memory/] [src/] [TestApp_Memory_LinkScr] - Blame information for rev 6

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

Line No. Rev Author Line
1 6 quickwayne
 
2
_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x1000;
3
 
4
/* Define all the memory regions in the system */
5
MEMORY
6
{
7
ilmb_cntlr : ORIGIN = 0x00000000, LENGTH = 0xffff
8
}
9
 
10
/*
11
* Specify the default entry point to the program
12
*/
13
ENTRY(_start)
14
 
15
/*
16
* Define the sections, and where they are mapped in memory
17
*/
18
SECTIONS
19
{
20
 
21
  .text : {
22
    _ftext = .;
23
    *(.text)
24
    *(.text.*)
25
    *(.gnu.linkonce.t*)
26
    _etext = .;
27
  } > ilmb_cntlr
28
 
29
  .rodata : {
30
    _frodata = .;
31
    *(.rodata)
32
    *(.rodata.*)
33
    *(.gnu.linkonce.r*)
34
    _erodata = .;
35
  } > ilmb_cntlr
36
 
37
  /* Alignments by 8 to ensure that _SDA2_BASE_ on a word boundary */
38
  .sdata2 : {
39
    . = ALIGN(8);
40
    _sdata2_start = .;
41
    *(.sdata2)
42
    . = ALIGN(8);
43
    _sdata2_end = .;
44
  } > ilmb_cntlr
45
  _sdata2_size = _sdata2_end - _sdata2_start;
46
  PROVIDE (_SDA2_BASE_ =  _sdata2_start + (_sdata2_size / 2 ));
47
 
48
  .data : {
49
    . = ALIGN(4);
50
    _fdata = .;
51
    *(.data)
52
    *(.data.*)
53
    *(.gnu.linkonce.d*)
54
    _edata = .;
55
  } > ilmb_cntlr
56
 
57
  .eh_frame : {
58
    *(.eh_frame)
59
  } > ilmb_cntlr
60
 
61
  /* Alignments by 8 to ensure that _SDA_BASE_ on a word boundary */
62
  /* Note that .sdata and .sbss must be contiguous */
63
 
64
  .sdata : {
65
    . = ALIGN(8);
66
    _ssro = .;
67
    *(.sdata)
68
  } > ilmb_cntlr
69
  .sbss : {
70
    . = ALIGN(4);
71
    PROVIDE (__sbss_start = .);
72
    *(.sbss)
73
    . = ALIGN(8);
74
    _essro = .;
75
  } > ilmb_cntlr
76
  PROVIDE (__sbss_end = _essro);
77
  _ssro_size = _essro - _ssro;
78
  PROVIDE (_SDA_BASE_ = _ssro + (_ssro_size / 2 ));
79
 
80
  .bss : {
81
    . = ALIGN(4);
82
    PROVIDE (__bss_start = .);
83
    *(.bss)
84
    *(COMMON)
85
    . = ALIGN(4);
86
    PROVIDE (__bss_end = .);
87
  } > ilmb_cntlr
88
 
89
  .bss_stack : {
90
     . = ALIGN(8);
91
     _heap = .;
92
     _heap_start = _heap;
93
     . += _STACK_SIZE;
94
     . = ALIGN(8);
95
     _stack = .;
96
     __stack = _stack;
97
  } > ilmb_cntlr
98
}
99
 

powered by: WebSVN 2.1.0

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