Ignore:
Timestamp:
Jan 13, 2000, 8:45:07 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4c3ab846
Parents:
11944b9b
Message:

All m68k BSPs now build with new ELF style linkcmds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/gen68340/startup/linkcmds

    r11944b9b rb8c9883  
    1919
    2020/*
    21  * a.out format doesn't handle prom images very well
    22  */
    23 OUTPUT_FORMAT(coff-m68k)
    24 
    25 /*
    2621 * Declare some sizes.
    2722 */
    28 RamSize = DEFINED(RamSize) ? RamSize : 4M;
    29 HeapSize = DEFINED(HeapSize) ? HeapSize : 0x10000;
    30 StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
     23_RamBase = 0x10000000;
     24_RamSize = DEFINED(_RamSize) ? _RamSize : 4M;
     25_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000;
     26_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
    3127
    3228/*
    3329 * Declare on-board memory.
    3430 * It would be nice if the ram length could be given as
    35  * LENGTH=RamSize, but gld doesn't allow non-constant
     31 * LENGTH=_RamSize, but gld doesn't allow non-constant
    3632 * values in the LENGTH expression. 
    3733 */
     
    5147 */
    5248SECTIONS {
    53         /*
    54          * Hardware variations
    55          */
    56         _RamSize = RamSize;
    57         __RamSize = RamSize;
    5849
    5950        /*
     
    6960         */
    7061        ram : {
    71                 _RamBase = .;
    72                 __RamBase = .;
     62                . = .;
    7363        } >ram
    7464
     
    155145        } >ram
    156146        .bss : {
    157                 M68Kvec = .;
    158                 _M68Kvec = .;
    159                 . += (256 * 4);
    160                 PROVIDE (_bss_start = .);
    161                 PROVIDE (_clear_start = .);
     147                M68Kvec = .;
     148                . += (256 * 4);
     149                _clear_start = .;
    162150                *(.bss)
    163151                *(COMMON)
     
    165153                PROVIDE (end = .);
    166154
    167                 . += StackSize;
    168                 PROVIDE (_stack_init = .);
     155                . += _StackSize;
     156                . = ALIGN (16);
     157                _stack_init = .;
     158                _clear_end = .;
    169159
    170                 . = ALIGN (16);
    171                 PROVIDE (_HeapStart = .);
    172                 . += HeapSize;
    173                 PROVIDE (_HeapEnd = .);
    174 
    175                 PROVIDE (_clear_end = .);
    176 
    177                 PROVIDE (_WorkspaceBase = .);
     160                _WorkspaceBase = .;
    178161        } >ram
    179162
Note: See TracChangeset for help on using the changeset viewer.