source: rtems/c/src/lib/libbsp/m68k/efi68k/startup/linkcmds @ 9b64c2d5

4.104.114.84.95
Last change on this file since 9b64c2d5 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: 2.0 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
33
34/*
35 * User modifiable values:
36 *
37 * _VBR                 location of VBR table
38 */
39
40MEMORY
41{
42  ram     : ORIGIN = 0x203000, LENGTH = 256K
43}
44
45_VBR = 0x200000;                /* location of the VBR table (in RAM) */
46__end_of_ram = 0x240000;
47_copy_data_from_rom = 0;
48
49/*
50 * stick everything in ram (of course)
51 */
52SECTIONS
53{
54  .text :
55  {
56    CREATE_OBJECT_SYMBOLS
57    text_start = .;
58    _text_start = .;
59    *(.text)
60    . = ALIGN (16);
61    *(.eh_fram)
62    . = ALIGN (16);
63
64    etext = ALIGN(0x10);
65    _etext = .;
66    __CTOR_LIST__ = .;
67    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
68    *(.ctors)
69    LONG(0)
70    __CTOR_END__ = .;
71    __DTOR_LIST__ = .;
72    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
73    *(.dtors)
74    LONG(0)
75    __DTOR_END__ = .;
76    *(.lit)
77    *(.shdata)
78    _endtext = .;
79  } > ram
80  .data :
81  {
82    data_start = .;
83    _data_start = .;
84    _sdata = . ;
85    *(.data)
86    CONSTRUCTORS
87    edata = ALIGN(0x10);
88    _edata = .;
89  } > ram
90  .shbss :
91  {
92    *(.shbss)
93  } > ram
94  .bss :
95  {
96    __bss_start = ALIGN(0x8);
97    bss_start = .;
98    _bss_start = .;
99    *(.bss)
100    *(COMMON)
101    end = .;
102    _end = ALIGN(0x8);
103    __end = ALIGN(0x8);
104  } > ram
105  .stab . (NOLOAD) :
106  {
107    [ .stab ]
108  }
109  .stabstr . (NOLOAD) :
110  {
111    [ .stabstr ]
112  }
113}
Note: See TracBrowser for help on using the repository browser.