Changeset e5a1b15 in rtems


Ignore:
Timestamp:
07/01/21 18:32:57 (3 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
5
Children:
ff94ddc
Parents:
4925ab4
git-author:
Gedare Bloom <gedare@…> (07/01/21 18:32:57)
git-committer:
Gedare Bloom <gedare@…> (07/01/21 18:53:50)
Message:

m68k/uC5282: linkcmds KEEP and SORT sections

Fixes a problem with bad epilog code in _fini and to keep sections
necessary with the -ffunction/data-sections.

Closes #4465.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/m68k/uC5282/start/linkcmds

    r4925ab4 re5a1b15  
    9292         */
    9393        PROVIDE (_init = .);
    94         *crti.o(.init)
    95         *(.init)
    96         *crtn.o(.init)
     94        KEEP (*crti.o(.init))
     95        KEEP (*(.init))
     96        KEEP (*crtn.o(.init))
    9797        PROVIDE (_fini = .);
    98         *crti.o(.fini)
    99         *(.fini)
    100         *crtn.o(.fini)
     98        KEEP (*crti.o(.fini))
     99        KEEP (*(.fini))
     100        KEEP (*crtn.o(.fini))
    101101
    102102        /*
     
    123123         */
    124124        . = ALIGN (16);
    125         *crtbegin.o(.ctors)
    126         *(.ctors)
    127         *crtend.o(.ctors)
    128         *crtbegin.o(.dtors)
    129         *(.dtors)
    130         *crtend.o(.dtors)
     125        KEEP (*crtbegin.o(.ctors))
     126        KEEP (*crtbegin?.o(.ctors))
     127        KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
     128        KEEP (*(SORT(.ctors.*)))
     129        KEEP (*(.ctors))
     130        KEEP (*crtbegin.o(.dtors))
     131        KEEP (*crtbegin?.o(.dtors))
     132        KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
     133        KEEP (*(SORT(.dtors.*)))
     134        KEEP (*(.dtors))
    131135
    132136        /*
     
    134138         */
    135139        . = ALIGN (16);
    136         *(.eh_frame)
     140        KEEP (*(.eh_frame))
    137141
    138142        /*
     
    142146        _rodata_start = . ;
    143147        *(.rodata*)
    144         KEEP (*(SORT(.rtemsroset.*)))
     148        KEEP (*(SORT(.rtemsroset.*)))
    145149        *(.gnu.linkonce.r*)
    146150
     
    180184        *(.gnu.linkonce.d*)
    181185        *(.gcc_except_table*)
    182         *(.jcr)
     186        KEEP (*(.jcr))
    183187        . = ALIGN (16);
    184188        PROVIDE (_edata = .);
Note: See TracChangeset for help on using the changeset viewer.