source: rtems/c/src/lib/libbsp/m68k/gen68302/startup/linkcmds @ 74f3d8f

4.104.114.84.95
Last change on this file since 74f3d8f was 74f3d8f, checked in by Joel Sherrill <joel.sherrill@…>, on 10/05/99 at 19:18:14

Corrected so sections did not overlap with new version of binutils.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  This file contains directives for the GNU linker which are specific
3 *  to the Generic MC68302 board.
4 *
5 *  COPYRIGHT (c) 1989-1998.
6 *  On-Line Applications Research Corporation (OAR).
7 *  Copyright assigned to U.S. Government, 1994.
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16MEMORY
17        {
18        ram : org = 0x0000, l = 16M
19        }
20
21m302 = 0xf7f000;
22_VBR = 0x000000;                /* location of the VBR table (in RAM) */
23
24SECTIONS
25{
26        .text 0xc00000 :
27        {
28        text_start = . ;
29        *(.text)
30        . = ALIGN (16);
31        *(.gnu.linkonce.t.*)
32        *(.descriptors)
33        /* .gnu.warning sections are handled specially by elf32.em.  */
34        *(.gnu.warning)
35
36        *(.eh_fram)
37        . = ALIGN (16);
38
39        /*
40         * C++ constructors
41         */
42        __CTOR_LIST__ = .;
43        LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
44        *(.ctors)
45        LONG(0)
46        __CTOR_END__ = .;
47        __DTOR_LIST__ = .;
48        LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
49        *(.dtors)
50        LONG(0)
51        __DTOR_END__ = .;
52        etext = ALIGN( 0x10 ) ;
53        }
54        .rodata           : { *(.rodata) *(.gnu.linkonce.r*) } >RAM
55        .data 0x010000 :
56        {
57        data_start = . ;
58        *(.data)
59        *(.gnu.linkonce.d.*)
60        edata = ALIGN( 0x10 ) ;
61        }
62        .bss ADDR( .data ) + SIZEOF( .data ):
63        {
64        bss_start = . ;
65        *(.bss)
66        *(COMMON)
67        end = . ;
68        _end = . ;
69        } 
70}
Note: See TracBrowser for help on using the repository browser.