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

4.104.114.84.95
Last change on this file since a902441a was a902441a, checked in by Joel Sherrill <joel.sherrill@…>, on 03/16/99 at 02:26:50

Patch from John S. Gwynne <jgwynne@…> to correct minor
problems that prevented the 19990302 snapshot from running on
the efi332.

I'm happy to report that rtems-19990302 is running on the efi332
board. I have enclosed a few minor patches below to the efi332 bsp. All
patches are within that library but one. make/custom/efi332.cfg has a
patch to select the right CPU_CFLAGS (at one time -m68332 was a
problem... -mcpu32 or -m68332 work fine now).

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[486c329]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{
[a902441a]35  ram     : ORIGIN = 0x80000, LENGTH = 512K
[486c329]36}
37
[a902441a]38__end_of_ram = 0x100000;
[486c329]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 = .;
[a902441a]51
[486c329]52    *(.text)
[f86ec42]53    . = ALIGN (16);
[a902441a]54
[f86ec42]55    *(.eh_fram)
56    . = ALIGN (16);
57
[486c329]58    etext = ALIGN(0x10);
59    _etext = .;
60    __CTOR_LIST__ = .;
61    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
62    *(.ctors)
63    LONG(0)
64    __CTOR_END__ = .;
65    __DTOR_LIST__ = .;
66    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
67    *(.dtors)
68    LONG(0)
69    __DTOR_END__ = .;
70    *(.lit)
71    *(.shdata)
72    _endtext = .;
73  } > ram
[a902441a]74  .gcc_exc :
75  {
76    *(.gcc_exc)
77  } > ram
[486c329]78  .data :
79  {
80    data_start = .;
81    _data_start = .;
82    _sdata = . ;
83    *(.data)
84    CONSTRUCTORS
85    edata = ALIGN(0x10);
86    _edata = .;
87  } > ram
88  .shbss :
89  {
90    *(.shbss)
91  } > ram
92  .bss :
93  {
94    __bss_start = ALIGN(0x8);
95    bss_start = .;
96    _bss_start = .;
97    *(.bss)
98    *(COMMON)
99    end = .;
100    _end = ALIGN(0x8);
101    __end = ALIGN(0x8);
102  } > ram
103  .stab . (NOLOAD) :
104  {
105    [ .stab ]
106  }
107  .stabstr . (NOLOAD) :
108  {
109    [ .stabstr ]
110  }
111}
Note: See TracBrowser for help on using the repository browser.