Changeset 4a22e7a in rtems


Ignore:
Timestamp:
04/16/99 18:08:27 (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
98d051f
Parents:
2a4791f
Message:

Corrected to reflect new way of doing mips constructors.

Location:
c/src/lib/libbsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/p4000/startup/linkcmds

    r2a4791f r4a22e7a  
    88   __DYNAMIC = 0;    */
    99_DYNAMIC_LINK = 0;
     10
    1011SECTIONS
    1112{
     
    1617  {
    1718    _ftext = . ;
     19    *(.init)
     20    eprol = .;
    1821    *(.text)
    19     CREATE_OBJECT_SYMBOLS
    20     _etext = .;
     22    *(.text.*)
     23    *(.gnu.linkonce.t*)
     24    *(.mips16.fn.*)
     25    *(.mips16.call.*)
     26    PROVIDE (__runtime_reloc_start = .);
     27    *(.rel.sdata)
     28    PROVIDE (__runtime_reloc_stop = .);
     29    *(.fini)
     30    /* CREATE_OBJECT_SYMBOLS */
     31    etext  =  .;
     32    _etext  =  .;
    2133  }
    22   .init    ALIGN(8)  : { *(.init)    } =0
    23   .fini    ALIGN(8)  : { *(.fini)    } =0
    24   .ctors   ALIGN(8)  : { *(.ctors)   }
    25   .dtors   ALIGN(8)  : { *(.dtors)   }
     34  .ctors         :
     35  {
     36    ___ctors = .;
     37/*
     38 *  This version is preferable but requires a very late
     39 *  model binutils (post 2.9.1).
     40    KEEP(*crtbegin.o(.ctors));
     41    KEEP(*(SORT(.ctors.*)));
     42    KEEP(*(.ctors));
     43*/
     44    *crtbegin.o(.ctors);
     45    *(.ctors.*);
     46    *(.ctors);
     47    ___ctors_end = .;
     48  }
     49  .dtors         :
     50  {
     51    ___dtors = .;
     52/*
     53 *  This version is preferable but requires a very late
     54 *  model binutils (post 2.9.1).
     55    KEEP(*crtbegin.o(.dtors));
     56    KEEP(*(SORT(.dtors.*)));
     57    KEEP(*(.dtors));
     58*/
     59    *crtbegin.o(.dtors);
     60    *(.dtors.*);
     61    *(.dtors);
     62    ___dtors_end = .;
     63  }
     64    . = .;
     65
     66
    2667  .rodata  ALIGN(8)  : { *(.rodata)  *(.gnu.linkonce.r*) }
    2768  .rodata1 ALIGN(8)  :
  • c/src/lib/libbsp/mips64orion/p4000/startup/linkcmds

    r2a4791f r4a22e7a  
    88   __DYNAMIC = 0;    */
    99_DYNAMIC_LINK = 0;
     10
    1011SECTIONS
    1112{
     
    1617  {
    1718    _ftext = . ;
     19    *(.init)
     20    eprol = .;
    1821    *(.text)
    19     CREATE_OBJECT_SYMBOLS
    20     _etext = .;
     22    *(.text.*)
     23    *(.gnu.linkonce.t*)
     24    *(.mips16.fn.*)
     25    *(.mips16.call.*)
     26    PROVIDE (__runtime_reloc_start = .);
     27    *(.rel.sdata)
     28    PROVIDE (__runtime_reloc_stop = .);
     29    *(.fini)
     30    /* CREATE_OBJECT_SYMBOLS */
     31    etext  =  .;
     32    _etext  =  .;
    2133  }
    22   .init    ALIGN(8)  : { *(.init)    } =0
    23   .fini    ALIGN(8)  : { *(.fini)    } =0
    24   .ctors   ALIGN(8)  : { *(.ctors)   }
    25   .dtors   ALIGN(8)  : { *(.dtors)   }
     34  .ctors         :
     35  {
     36    ___ctors = .;
     37/*
     38 *  This version is preferable but requires a very late
     39 *  model binutils (post 2.9.1).
     40    KEEP(*crtbegin.o(.ctors));
     41    KEEP(*(SORT(.ctors.*)));
     42    KEEP(*(.ctors));
     43*/
     44    *crtbegin.o(.ctors);
     45    *(.ctors.*);
     46    *(.ctors);
     47    ___ctors_end = .;
     48  }
     49  .dtors         :
     50  {
     51    ___dtors = .;
     52/*
     53 *  This version is preferable but requires a very late
     54 *  model binutils (post 2.9.1).
     55    KEEP(*crtbegin.o(.dtors));
     56    KEEP(*(SORT(.dtors.*)));
     57    KEEP(*(.dtors));
     58*/
     59    *crtbegin.o(.dtors);
     60    *(.dtors.*);
     61    *(.dtors);
     62    ___dtors_end = .;
     63  }
     64    . = .;
     65
     66
    2667  .rodata  ALIGN(8)  : { *(.rodata)  *(.gnu.linkonce.r*) }
    2768  .rodata1 ALIGN(8)  :
Note: See TracChangeset for help on using the changeset viewer.