source: rtems/c/src/lib/libbsp/m68k/efi332/startup/linkcmds @ f86ec42

4.104.114.84.95
Last change on this file since f86ec42 was f86ec42, checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/98 at 23:35:54

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

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*  linkcmds
2 *
3 *  $Id$
4 */
5
6OUTPUT_ARCH(m68k)
7__DYNAMIC  =  0;
8
9/*
10 * The memory map looks like this:
11 * +--------------------+ <- low memory
12 * | .text              |
13 * |        etext       |
14 * |        ctor list   | the ctor and dtor lists are for
15 * |        dtor list   | C++ support
16 * |        _endtext    |
17 * +--------------------+
18 * | .data              | initialized data goes here
19 * |        _sdata      |
20 * |        _edata      |
21 * +--------------------+
22 * | .bss               |
23 * |        __bss_start | start of bss, cleared by crt0
24 * |        _end        | start of heap, used by sbrk()
25 * +--------------------+
26 * |    heap space      |
27 * |        _ENDHEAP    |
28 * |    stack space     |
29 * |        __stack     | top of stack
30 * +--------------------+ <- high memory
31 */
32
33MEMORY
34{
35  ram     : ORIGIN = 0x80000, LENGTH = 256K
36}
37
38__end_of_ram = 0xc0000;
39_copy_data_from_rom = 0;
40
41/*
42 * stick everything in ram (of course)
43 */
44SECTIONS
45{
46  .text :
47  {
48    CREATE_OBJECT_SYMBOLS
49    text_start = .;
50    _text_start = .;
51    *(.text)
52    . = ALIGN (16);
53    *(.eh_fram)
54    . = ALIGN (16);
55
56    etext = ALIGN(0x10);
57    _etext = .;
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    *(.lit)
69    *(.shdata)
70    _endtext = .;
71  } > ram
72  .data :
73  {
74    data_start = .;
75    _data_start = .;
76    _sdata = . ;
77    *(.data)
78    CONSTRUCTORS
79    edata = ALIGN(0x10);
80    _edata = .;
81  } > ram
82  .shbss :
83  {
84    *(.shbss)
85  } > ram
86  .bss :
87  {
88    __bss_start = ALIGN(0x8);
89    bss_start = .;
90    _bss_start = .;
91    *(.bss)
92    *(COMMON)
93    end = .;
94    _end = ALIGN(0x8);
95    __end = ALIGN(0x8);
96  } > ram
97  .stab . (NOLOAD) :
98  {
99    [ .stab ]
100  }
101  .stabstr . (NOLOAD) :
102  {
103    [ .stabstr ]
104  }
105}
Note: See TracBrowser for help on using the repository browser.