source: rtems/bsps/bfin/TLL6527M/start/linkcmds @ e10dec0

Last change on this file since e10dec0 was e10dec0, checked in by Sebastian Huber <sebastian.huber@…>, on 04/30/21 at 13:47:10

bsps: Support RTEMS_NOINIT in linkcmds

Update #3866.

  • Property mode set to 100644
File size: 4.7 KB
Line 
1OUTPUT_FORMAT("elf32-bfin", "elf32-bfin",
2            "elf32-bfin")
3
4OUTPUT_ARCH(bfin)
5ENTRY(__start)
6STARTUP(start.o)
7
8/*
9 * Declare some sizes.
10 */
11_RamBase    = DEFINED(_RamBase)   ? _RamBase : 0x0;
12_RamSize    = DEFINED(_RamSize)   ? _RamSize : 0x04000000;
13_RamEnd     = _RamBase + _RamSize;
14_HeapSize   = DEFINED(_HeapSize)  ? _HeapSize : 0x10000;
15
16MEMORY
17{
18      sdram(rwx)      : ORIGIN = 0x00000100, LENGTH = 0x04000000
19     
20      l1dataA(rwx)    : ORIGIN = 0xff800000, LENGTH = 0x00004000
21      l1dataAC(rwx)   : ORIGIN = 0xff804000, LENGTH = 0x00004000
22      l1dataB(rwx)    : ORIGIN = 0xff900000, LENGTH = 0x00004000
23      l1dataBC(rwx)   : ORIGIN = 0xff904000, LENGTH = 0x00004000
24     
25      l1code(rwx)     : ORIGIN = 0xffa00000, LENGTH = 0x0000C000
26      l1codeC(rwx)    : ORIGIN = 0xffa10000, LENGTH = 0x00004000
27      scratchpad(rwx) : ORIGIN = 0xffb00000, LENGTH = 0x00001000
28}
29
30SECTIONS
31{
32
33    .init          :
34    {
35        *(.l1code)
36        KEEP (*(.init))
37    } > sdram   /*=0*/
38
39    .text :
40    {
41         CREATE_OBJECT_SYMBOLS
42        *(.text)
43        *(.rodata*)
44        *(.gnu.linkonce.r*)
45       
46        /*
47         * Special FreeBSD sysctl sections.
48         */
49        . = ALIGN (16);
50        ___start_set_sysctl_set = .;
51        *(set_sysctl_*);
52        ___stop_set_sysctl_set = ABSOLUTE(.);
53        *(set_domain_*);
54        *(set_pseudo_*);
55
56         _etext = .;
57
58        ___CTOR_LIST__ = .;
59        LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)
60        *(.ctors)
61        LONG(0)
62        ___CTOR_END__ = .;
63        ___DTOR_LIST__ = .;
64        LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)
65        *(.dtors)
66        LONG(0)
67        ___DTOR_END__ = .;         
68    } > sdram
69
70    .tdata : {
71        __TLS_Data_begin = .;
72        *(.tdata .tdata.* .gnu.linkonce.td.*)
73        __TLS_Data_end = .;
74    } > sdram
75
76    .tbss : {
77        __TLS_BSS_begin = .;
78        *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon)
79        __TLS_BSS_end = .;
80    } > sdram
81
82    __TLS_Data_size = __TLS_Data_end - __TLS_Data_begin;
83    __TLS_Data_begin = __TLS_Data_size != 0 ? __TLS_Data_begin : __TLS_BSS_begin;
84    __TLS_Data_end = __TLS_Data_size != 0 ? __TLS_Data_end : __TLS_BSS_begin;
85    __TLS_BSS_size = __TLS_BSS_end - __TLS_BSS_begin;
86    __TLS_Size = __TLS_BSS_end - __TLS_Data_begin;
87    __TLS_Alignment = MAX (ALIGNOF (.tdata), ALIGNOF (.tbss));
88   
89    .fini :
90    {
91        KEEP (*(.fini))
92    } > sdram  /*=0*/
93   
94    .data :
95    {
96        *(.data)
97        KEEP (*(SORT(.rtemsrwset.*)))
98        *(.jcr)
99        *(.gnu.linkonce.d*)
100        CONSTRUCTORS
101         _edata = .;
102    } > sdram
103
104    .eh_frame : { *(.eh_frame) } > sdram
105    .data1   : { *(.data1) } > sdram
106    .eh_frame : { *(.eh_frame) } > sdram
107    .gcc_except_table : { *(.gcc_except_table*) } > sdram
108
109    .rodata :
110    {
111        *(.rodata)
112        *(.rodata.*)
113        KEEP (*(SORT(.rtemsroset.*)))
114        *(.gnu.linkonce.r*)
115    } > sdram
116
117   
118    .bss :
119    {
120         _bss_start = .;
121        _clear_start = .;
122        *(.bss)
123        *(.gnu.linkonce.b.*)
124        *(COMMON)
125        . = ALIGN (64);
126        _clear_end = .;
127         _end = .;
128         __end = .;
129    } > sdram
130
131    .noinit (NOLOAD) : {
132        *(.noinit*)
133    } > sdram
134
135    .rtemsstack (NOLOAD) : {
136        *(SORT(.rtemsstack.*))
137        _WorkAreaBase = .;
138    } > sdram
139
140/* Debugging stuff follows */
141
142  /* Stabs debugging sections.  */
143  .stab 0 : { *(.stab) }
144  .stabstr 0 : { *(.stabstr) }
145  .stab.excl 0 : { *(.stab.excl) }
146  .stab.exclstr 0 : { *(.stab.exclstr) }
147  .stab.index 0 : { *(.stab.index) }
148  .stab.indexstr 0 : { *(.stab.indexstr) }
149  .comment 0 : { *(.comment) }
150  /* DWARF debug sections.
151     Symbols in the DWARF debugging sections are relative to the beginning
152     of the section so we begin them at 0.  */
153  /* DWARF 1 */
154  .debug          0 : { *(.debug) }
155  .line           0 : { *(.line) }
156  /* GNU DWARF 1 extensions */
157  .debug_srcinfo  0 : { *(.debug_srcinfo) }
158  .debug_sfnames  0 : { *(.debug_sfnames) }
159  /* DWARF 1.1 and DWARF 2 */
160  .debug_aranges  0 : { *(.debug_aranges) }
161  .debug_pubnames 0 : { *(.debug_pubnames) }
162  /* DWARF 2 */
163  .debug_info     0 : { *(.debug_info) }
164  .debug_abbrev   0 : { *(.debug_abbrev) }
165  .debug_line     0 : { *(.debug_line) }
166  .debug_frame    0 : { *(.debug_frame) }
167  .debug_str      0 : { *(.debug_str) }
168  .debug_loc      0 : { *(.debug_loc) }
169  .debug_macinfo  0 : { *(.debug_macinfo) }
170  /* SGI/MIPS DWARF 2 extensions */
171  .debug_weaknames 0 : { *(.debug_weaknames) }
172  .debug_funcnames 0 : { *(.debug_funcnames) }
173  .debug_typenames 0 : { *(.debug_typenames) }
174  .debug_varnames  0 : { *(.debug_varnames) }
175  /* These must appear regardless of  .  */   
176}
177
178__HeapSize = _HeapSize;
179__edata = _edata;
180__etext = _etext;
181
Note: See TracBrowser for help on using the repository browser.