Changeset c257ec4e in rtems


Ignore:
Timestamp:
Dec 22, 1997, 6:23:58 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
fcb114c1
Parents:
608641e
Message:

Fixes from Eric Norum. C++ support added in previous version was broken:

1) In my haste to add C++ constructor/destructors to the 68360
linkcmds scripts I managed to break all existing 68360 programs.
Linker scripts which actually produce a working executable are
contained below. The problem was that the constructor/destructors
weren't included before the etext symbol.

On top of that Eric and I appear to have problems with attachments:

2) In deciphering the above problem I think I stumbled across the
reason you've had with patches mailed from me. I noticed that the
linkcmds (and linkcmds.bootp) scripts in the latest distribution have
a control-M (carriage return) at the end of each line. Could you
check the files below before installing them in the distribution and
see that there aren't returns in the files? Maybe if I send
everything as a tar attatchment things will work better.

Location:
c/src/lib/libbsp/m68k/gen68360/startup
Files:
3 edited

Legend:

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

    r608641e rc257ec4e  
    7272                *(.text)
    7373                . = ALIGN (16);
    74                 etext = .;
    75                 _etext = .;
    7674
    7775                /*
     
    8886                LONG(0)
    8987                __DTOR_END__ = .;
     88
     89                etext = .;
     90                _etext = .;
    9091        } >ram
    9192        .data : {
  • c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.bootp

    r608641e rc257ec4e  
    7777                *(.text)
    7878                . = ALIGN (16);
    79                 etext = .;
    80                 _etext = .;
    8179
    8280                /*
     
    9391                LONG(0)
    9492                __DTOR_END__ = .;
     93
     94                etext = .;
     95                _etext = .;
    9596        } >rom
    9697        .data : AT(SIZEOF(.text)) {
  • c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.prom

    r608641e rc257ec4e  
    3434
    3535/*
    36  * Declare hardware type
    37  */
    38 MC68360HardwareTypeMotorolaGeneric = 0;
    39 MC68360HardwareTypeAtlasHSB = 1;
    40 MC68360HardwareType = DEFINED(MC68360HardwareType) ? MC68360HardwareType : 0;
    41 
    42 /*
    4336 * Declare on-board memory.
    4437 * It would be nice if the ram length could be given as
     
    5851
    5952/*
    60  * Declare hardware type.
    61  * Acceptable values are:
    62  *      0 - Generic system as described in the MC68360 User's Manual
    63  *          (MC68360UM/AD Rev. 1).
    64  *      1 - ATLAS Computer Equipment Incorporated ACE360/HSB.
    65  */
    66 MC68360HardwareType = DEFINED(MC68360HardwareType) ? MC68360HardwareType : 0;
    67 
    68 /*
    6953 * Load objects
    7054 */
     
    7559        _RamSize = RamSize;
    7660        __RamSize = RamSize;
    77         _MC68360HardwareType = MC68360HardwareType;
    78         __MC68360HardwareType = MC68360HardwareType;
    79         _MC68360HardwareTypeMotorolaGeneric = MC68360HardwareTypeMotorolaGeneric;
    80         __MC68360HardwareTypeMotorolaGeneric = MC68360HardwareTypeMotorolaGeneric;
    81         _MC68360HardwareTypeAtlasHSB = MC68360HardwareTypeAtlasHSB;
    82         __MC68360HardwareTypeAtlasHSB = MC68360HardwareTypeAtlasHSB;
    8361
    8462        /*
     
    10583                *(.text)
    10684                . = ALIGN (16);
    107                 etext = .;
    108                 _etext = .;
    10985
    11086                /*
     
    12197                LONG(0)
    12298                __DTOR_END__ = .;
     99
     100                etext = .;
     101                _etext = .;
    123102        } >rom
    124103        .data : {
Note: See TracChangeset for help on using the changeset viewer.