source: rtems/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds @ 11532ca

4.104.114.84.95
Last change on this file since 11532ca was 11532ca, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 24, 1996 at 8:05:52 PM

Hacked so gld will accept this so we can purge the aout toolset. This change
should be undone when the m68k-coff cross toolset is updated next time.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
2 *  This file contains GNU linker directives for a generic MC68360 board.
3 *
4 * Saskatchewan Accelerator Laboratory
5 * University of Saskatchewan
6 * Saskatoon, Saskatchewan, CANADA
7 * eric@skatter.usask.ca
8 *
9 *  $Id$
10 */
11
12/*
13 * Declare on-board memory
14 */
15MEMORY {
16          ram : ORIGIN = 0x00000000, LENGTH = 4M
17          rom : ORIGIN = 0xFF000000, LENGTH = 1M
18        dpram : ORIGIN = 0xFE000000, LENGTH = 8k
19}
20
21/*
22 * Declare some sizes
23 */
24
25/*
26 *  XXX: The assignment of ". += XyzSize;" fails in older gld's if the
27 *       number used there is not constant so the calculated sizes are
28 *       ignored below and the default number is used instead.
29 */
30
31HeapSize = DEFINED(HeapSize) ? HeapSize : 0x10000;
32StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
33
34/*
35 * Load objects
36 */
37SECTIONS {
38        .text : {
39                _RamBase = .;
40                __RamBase = .;
41                CREATE_OBJECT_SYMBOLS
42                *(.text)
43                . = ALIGN (16);
44                _etext = .;
45        } >ram
46        .data : {
47                *(.data)
48                . = ALIGN (16);
49                _edata = .;
50        } >ram
51        .bss : {
52                M68Kvec = .;
53                _M68Kvec = .;
54                . += (256 * 4);
55                clear_start = .;
56                *(.bss)
57                *(COMMON)
58                . = ALIGN (16);
59                _end = .;
60
61                _HeapStart = .;
62                __HeapStart = .;
63                /* XXX:  Temporary to get around a gld bug
64                 *
65                 *  . += HeapSize;
66                 *  . += StackSize;
67                 */
68                . += 0x10000;   /* XXX */
69                . += 0x1000;   /* XXX */
70
71                . = ALIGN (16);
72                stack_init = .;
73                clear_end = .;
74
75                _WorkspaceBase = .;
76                __WorkspaceBase = .;
77        } >ram
78
79        /*
80         * On-chip memory/peripherals
81         */
82        dpram : {
83                m360 = .;
84                _m360 = .;
85                . += (8 * 1024);
86
87        } >dpram
88
89        /*
90         * Boot PROM
91         */
92        rom : {
93                _RomBase = .;
94                __RomBase = .;
95        } >rom
96}
Note: See TracBrowser for help on using the repository browser.