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

4.104.114.84.95
Last change on this file since d0e126a6 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: 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    etext = ALIGN(0x10);
61    _etext = .;
62    __CTOR_LIST__ = .;
63    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
64    *(.ctors)
65    LONG(0)
66    __CTOR_END__ = .;
67    __DTOR_LIST__ = .;
68    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
69    *(.dtors)
70    LONG(0)
71    __DTOR_END__ = .;
72    *(.lit)
73    *(.shdata)
74    _endtext = .;
75  } > ram
76  .data :
77  {
78    data_start = .;
79    _data_start = .;
80    _sdata = . ;
81    *(.data)
82    CONSTRUCTORS
83    edata = ALIGN(0x10);
84    _edata = .;
85  } > ram
86  .shbss :
87  {
88    *(.shbss)
89  } > ram
90  .bss :
91  {
92    __bss_start = ALIGN(0x8);
93    bss_start = .;
94    _bss_start = .;
95    *(.bss)
96    *(COMMON)
97    end = .;
98    _end = ALIGN(0x8);
99    __end = ALIGN(0x8);
100  } > ram
101  .stab . (NOLOAD) :
102  {
103    [ .stab ]
104  }
105  .stabstr . (NOLOAD) :
106  {
107    [ .stabstr ]
108  }
109}
Note: See TracBrowser for help on using the repository browser.