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

4.104.114.84.95
Last change on this file since d2632274 was 6335022e, checked in by Joel Sherrill <joel.sherrill@…>, on 03/11/97 at 15:42:59

updates from John Gwynne

  • Property mode set to 100644
File size: 1.8 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    etext = ALIGN(0x10);
53    _etext = .;
54    __CTOR_LIST__ = .;
55    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
56    *(.ctors)
57    LONG(0)
58    __CTOR_END__ = .;
59    __DTOR_LIST__ = .;
60    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
61    *(.dtors)
62    LONG(0)
63    __DTOR_END__ = .;
64    *(.lit)
65    *(.shdata)
66    _endtext = .;
67  } > ram
68  .data :
69  {
70    data_start = .;
71    _data_start = .;
72    _sdata = . ;
73    *(.data)
74    CONSTRUCTORS
75    edata = ALIGN(0x10);
76    _edata = .;
77  } > ram
78  .shbss :
79  {
80    *(.shbss)
81  } > ram
82  .bss :
83  {
84    __bss_start = ALIGN(0x8);
85    bss_start = .;
86    _bss_start = .;
87    *(.bss)
88    *(COMMON)
89    end = .;
90    _end = ALIGN(0x8);
91    __end = ALIGN(0x8);
92  } > ram
93  .stab . (NOLOAD) :
94  {
95    [ .stab ]
96  }
97  .stabstr . (NOLOAD) :
98  {
99    [ .stabstr ]
100  }
101}
Note: See TracBrowser for help on using the repository browser.