source: rtems/c/src/lib/libbsp/m68k/ods68302/startup/rom @ b618d8c

5
Last change on this file since b618d8c was b618d8c, checked in by Sebastian Huber <sebastian.huber@…>, on 09/16/15 at 05:13:58

Add RTEMS linker sets

Update #2408.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 * MC68302 Linker command file
3 */
4
5SECTIONS
6{
7  .text . :
8  {
9    text_start = .;
10    *(.text)
11    etext = .;
12    . = ALIGN(4);
13    __CTOR_LIST__ = .;
14    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
15    *(.ctors)
16    LONG(0)
17    __CTOR_END__ = .;
18    . = ALIGN(4);
19    __DTOR_LIST__ = .;
20    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
21    *(.dtors)
22    LONG(0)
23    __DTOR_END__ = .;
24  }
25
26  .tdata : {
27    _TLS_Data_begin = .;
28    *(.tdata .tdata.* .gnu.linkonce.td.*)
29    _TLS_Data_end = .;
30  }
31  .tbss : {
32    _TLS_BSS_begin = .;
33    *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon)
34    _TLS_BSS_end = .;
35  }
36  _TLS_Data_size = _TLS_Data_end - _TLS_Data_begin;
37  _TLS_Data_begin = _TLS_Data_size != 0 ? _TLS_Data_begin : _TLS_BSS_begin;
38  _TLS_Data_end = _TLS_Data_size != 0 ? _TLS_Data_end : _TLS_BSS_begin;
39  _TLS_BSS_size = _TLS_BSS_end - _TLS_BSS_begin;
40  _TLS_Size = _TLS_BSS_end - _TLS_Data_begin;
41  _TLS_Alignment = MAX (ALIGNOF (.tdata), ALIGNOF (.tbss));
42 
43  .vtable 0 :
44  {
45    vtable_start = .;
46    *(.vtable)
47    evtable = .;
48  }
49
50  .data (ADDR(.vtable) + SIZEOF(.vtable)) :
51     AT (ADDR(.text) + SIZEOF(.text))
52  {
53    data_start = .;
54    *(.data)
55    KEEP (*(SORT(.rtemsroset.*)))
56    KEEP (*(SORT(.rtemsrwset.*)))
57    edata = .;
58  }
59  .bss (ADDR(.data) + SIZEOF(.data)) :
60  {
61    bss_start = .;
62    *(.bss)
63    *(COMMON)
64    end = . ;
65    _end = . ;
66  } 
67}
68
69RAM_BASE = DEFINED(RAM_BASE) ? RAM_BASE : 0x00000000;
70RAM_SIZE = DEFINED(RAM_SIZE) ? RAM_SIZE : 0x00100000;
71ROM_BASE = DEFINED(ROM_BASE) ? ROM_BASE : 0x00C00000;
72ROM_SIZE = DEFINED(ROM_SIZE) ? ROM_SIZE : 0x00100000;
73MC68302_BASE = DEFINED(MC68302_BASE) ? MC68302_BASE : 0x00700000;
74m302 = MC68302_BASE;
75_VBR = 0;               /* location of the VBR table (in RAM) */
76
77
Note: See TracBrowser for help on using the repository browser.