source: rtems/c/src/lib/libbsp/m68k/ods68302/startup/linkcmds @ 5c3511e

4.104.114.84.95
Last change on this file since 5c3511e was 0074691a, checked in by Joel Sherrill <joel.sherrill@…>, on 07/31/97 at 22:13:29

Merged very large and much appreciated patch from Chris Johns
<cjohns@…>. This patch includes the ods68302 bsp,
the RTEMS++ class library, and the rtems++ test.

  • Property mode set to 100644
File size: 839 bytes
Line 
1/*
2 * $Id$
3 *
4 * MC68302 Linker command file
5 *
6 */
7
8SECTIONS
9{
10  .text . :
11  {
12    text_start = .;
13    *(.text)
14    etext = .;
15    . = ALIGN(4);
16    __CTOR_LIST__ = .;
17    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
18    *(.ctors)
19    LONG(0)
20    __CTOR_END__ = .;
21    . = ALIGN(4);
22    __DTOR_LIST__ = .;
23    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
24    *(.dtors)
25    LONG(0)
26    __DTOR_END__ = .;
27  }
28 
29  .vtable 0 :
30  {
31    vtable_start = .;
32    *(.vtable)
33    evtable = .;
34  }
35
36  .data (ADDR(.vtable) + SIZEOF(.vtable)) :
37     AT (ADDR(.text) + SIZEOF(.text))
38  {
39    data_start = .;
40    *(.data)
41    edata = .;
42  }
43  .bss (ADDR(.data) + SIZEOF(.data)) :
44  {
45    bss_start = .;
46    *(.bss)
47    *(COMMON)
48    end = . ;
49    _end = . ;
50  } 
51}
52
53m302 = MC68302_BASE;
54_VBR = ADDR(.vtable);           /* location of the VBR table (in RAM) */
55
Note: See TracBrowser for help on using the repository browser.