source: rtems/c/src/lib/libbsp/m68k/ods68302/startup/linkcmds @ 33b304f

4.104.114.84.95
Last change on this file since 33b304f was f86ec42, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 17, 1998 at 11:35:54 PM

Added .eh_frame, C++ constructor, and C++ destructor sections.

  • Property mode set to 100644
File size: 897 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    . = ALIGN (16);
15
16    *(.eh_fram)
17    . = ALIGN (16);
18
19    etext = .;
20    . = ALIGN(4);
21    __CTOR_LIST__ = .;
22    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
23    *(.ctors)
24    LONG(0)
25    __CTOR_END__ = .;
26    . = ALIGN(4);
27    __DTOR_LIST__ = .;
28    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
29    *(.dtors)
30    LONG(0)
31    __DTOR_END__ = .;
32  }
33 
34  .vtable 0 :
35  {
36    vtable_start = .;
37    *(.vtable)
38    evtable = .;
39  }
40
41  .data (ADDR(.vtable) + SIZEOF(.vtable)) :
42     AT (ADDR(.text) + SIZEOF(.text))
43  {
44    data_start = .;
45    *(.data)
46    edata = .;
47  }
48  .bss (ADDR(.data) + SIZEOF(.data)) :
49  {
50    bss_start = .;
51    *(.bss)
52    *(COMMON)
53    end = . ;
54    _end = . ;
55  } 
56}
57
58m302 = MC68302_BASE;
59_VBR = ADDR(.vtable);           /* location of the VBR table (in RAM) */
60
Note: See TracBrowser for help on using the repository browser.