Changeset 30d61a6 in rtems


Ignore:
Timestamp:
May 7, 2019, 8:17:49 AM (2 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
7bd38f8
Parents:
f6895c6
git-author:
Sebastian Huber <sebastian.huber@…> (05/07/19 08:17:49)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/07/19 08:31:51)
Message:

bsps/powerpc: Fix constructors with priority

Update #3339.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/powerpc/shared/start/linkcmds.share

    rf6895c6 r30d61a6  
    183183  .dynamic        : { *(.dynamic) }     > CODE
    184184
    185   .ctors          :
    186   {
    187     /* gcc uses crtbegin.o to find the start of
    188        the constructors, so we make sure it is
    189        first.  Because this is a wildcard, it
    190        doesn't matter if the user does not
    191        actually link against crtbegin.o; the
    192        linker won't look for a file to match a
    193        wildcard.  The wildcard also means that it
    194        doesn't matter which directory crtbegin.o
    195        is in.  */
     185  .ctors          : {
     186    KEEP (*ecrti.o(.ctors))
    196187    KEEP (*crtbegin.o(.ctors))
    197     /* We don't want to include the .ctor section from
    198        from the crtend.o file until after the sorted ctors.
    199        The .ctor section from the crtend file contains the
    200        end of ctors marker and it must be last */
    201     KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
     188    KEEP (*crtbegin?.o(.ctors))
     189    KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o *ecrtn.o) .ctors))
    202190    KEEP (*(SORT(.ctors.*)))
    203191    KEEP (*(.ctors))
    204192  } > CODE
    205   .dtors          :
    206   {
     193  .dtors          : {
     194    KEEP (*ecrti.o(.dtors))
    207195    KEEP (*crtbegin.o(.dtors))
    208     KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
     196    KEEP (*crtbegin?.o(.dtors))
     197    KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o *ecrtn.o) .dtors))
    209198    KEEP (*(SORT(.dtors.*)))
    210199    KEEP (*(.dtors))
Note: See TracChangeset for help on using the changeset viewer.