Subversion Repositories NaviCtrl

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ingob 1
/*** Linker Script File     ***/
2
/*** Hitex/We/2006-04-24   ***/
3
 
4
/* Memory Definitions         */
5
/* for STR912-Eval            */
6
 
7
 
8
 
9
MEMORY
10
{
11
  IntCodeFlash (rx) : ORIGIN = 0x00000000, LENGTH = 512k
12
  IntCodeFlash1 (rx) : ORIGIN = 0x400000, LENGTH = 32k
13
  IntDataRAM (rw)   : ORIGIN = 0x4000000, LENGTH = 96k
14
  IntDataEth (!rx)  : ORIGIN = 0x7C00000, LENGTH = 0x42F	/* AHB nonbuffered Ethernet RAM */
15
}
16
 
17
/* this address is used in startup for initilizing stack */
18
/* stack is at the end of data range					  */
19
 
20
PROVIDE(_top_stack_ = 0x4018000 -4);
21
 
22
SECTIONS
23
{
24
 
25
  /* first section is .text which is used for code */
26
  .start : { *(.startup)} >IntCodeFlash = 0
27
  .text :
28
  {
29
/* here is the path to change and Processor-specific ISR_XXX-file */
30
	./obj/startup912.o (.text)  /* Startup code */
31
    ./*(.text)           /* remaining code */
32
    *(.glue_7t) *(.glue_7)
33
 
34
 
35
  } >IntCodeFlash =0
36
 
37
  	__end_of_text__ = .;
38
 
39
  . = ALIGN(4);
40
 
41
  /* .rodata section which is used for read-only data (constants) */
42
 
43
  .rodata . :
44
  {
45
    *(.rodata)
46
  } >IntCodeFlash
47
 
48
  . = ALIGN(4);
49
 
50
  _etext = . ;
51
  PROVIDE (etext = .);
52
 
53
  /* .data section which is used for initialized data */
54
 
55
  .data : AT (_etext)
56
  {
57
    _data = . ;
58
    __data_beg_src__ = __end_of_text__;
59
    __data_start__ = . ;
60
    PROVIDE (__data_start__ = .) ;
61
    *(.data)
62
    SORT(CONSTRUCTORS)
63
	*(.ramfunc)
64
  } >IntDataRAM
65
  . = ALIGN(4);
66
 
67
  _edata = . ;
68
   PROVIDE (edata = .);
69
 
70
  /* .bss section which is used for uninitialized data */
71
 
72
  .bss :
73
  {
74
    __bss_start = . ;
75
    __bss_start__ = . ;
76
    *(.bss)
77
    *(COMMON)
78
  } >IntDataRAM
79
  . = ALIGN(4);
80
  __bss_end__ = . ;
81
  __bss_end = . ;
82
 
83
  _end = .;
84
  PROVIDE (end = .);
85
 
86
.bss2 :
87
  {
88
    /* used for uninitialized data */
89
 
90
    __bss2_start = . ;
91
    __bss2_start__ = . ;
92
    *(COMMON)
93
    . = ALIGN(4);
94
    __bss2_end__ = . ;
95
 
96
  } >IntDataRAM
97
 
98
  /* Stabs debugging sections.  */
99
  .stab          0 : { *(.stab) }
100
  .stabstr       0 : { *(.stabstr) }
101
  .stab.excl     0 : { *(.stab.excl) }
102
  .stab.exclstr  0 : { *(.stab.exclstr) }
103
  .stab.index    0 : { *(.stab.index) }
104
  .stab.indexstr 0 : { *(.stab.indexstr) }
105
  .comment       0 : { *(.comment) }
106
  /* DWARF debug sections.
107
     Symbols in the DWARF debugging sections are relative to the beginning
108
     of the section so we begin them at 0.  */
109
  /* DWARF 1 */
110
  .debug          0 : { *(.debug) }
111
  .line           0 : { *(.line) }
112
  /* GNU DWARF 1 extensions */
113
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
114
  .debug_sfnames  0 : { *(.debug_sfnames) }
115
  /* DWARF 1.1 and DWARF 2 */
116
  .debug_aranges  0 : { *(.debug_aranges) }
117
  .debug_pubnames 0 : { *(.debug_pubnames) }
118
  /* DWARF 2 */
119
  .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
120
  .debug_abbrev   0 : { *(.debug_abbrev) }
121
  .debug_line     0 : { *(.debug_line) }
122
  .debug_frame    0 : { *(.debug_frame) }
123
  .debug_str      0 : { *(.debug_str) }
124
  .debug_loc      0 : { *(.debug_loc) }
125
  .debug_macinfo  0 : { *(.debug_macinfo) }
126
  /* SGI/MIPS DWARF 2 extensions */
127
  .debug_weaknames 0 : { *(.debug_weaknames) }
128
  .debug_funcnames 0 : { *(.debug_funcnames) }
129
  .debug_typenames 0 : { *(.debug_typenames) }
130
  .debug_varnames  0 : { *(.debug_varnames) }
131
}