Changeset 4899759 in rtems


Ignore:
Timestamp:
03/06/18 06:23:07 (6 years ago)
Author:
Thanassis Tsiodras <Thanassis.Tsiodras@…>
Branches:
5, master
Children:
337a186
Parents:
8b2d5b8
git-author:
Thanassis Tsiodras <Thanassis.Tsiodras@…> (03/06/18 06:23:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/06/18 06:27:21)
Message:

bsps/sparc: Fix global construction/destruction

The

KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))

cannot be simplified to

KEEP (*(SORT(.ctors*)))

since

.ctors < .ctors.*

in lexicographical order.

See spglobalcon02 test case.

Update #3319.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/startup/linkcmds.base

    r8b2d5b8 r4899759  
    8989       end of ctors marker and it must be last */
    9090    KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
    91     KEEP (*(SORT(.ctors*)))
     91    KEEP (*(SORT(.ctors.*)))
     92    KEEP (*(.ctors))
    9293    KEEP (*crtbegin.o(.dtors))
    9394    KEEP (*crtbegin?.o(.dtors))
    9495    KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
    95     KEEP (*(SORT(.dtors*)))
     96    KEEP (*(SORT(.dtors.*)))
     97    KEEP (*(.dtors))
    9698
    9799    _rodata_start = . ;
Note: See TracChangeset for help on using the changeset viewer.