Changeset 63c6b06f in rtems


Ignore:
Timestamp:
03/06/18 06:23:07 (6 years ago)
Author:
Thanassis Tsiodras <Thanassis.Tsiodras@…>
Branches:
4.11
Children:
051778e
Parents:
a100457
git-author:
Thanassis Tsiodras <Thanassis.Tsiodras@…> (03/06/18 06:23:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/12/21 12:47:59)
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.

Close #3319.

File:
1 edited

Legend:

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

    ra100457 r63c6b06f  
    8888       end of ctors marker and it must be last */
    8989    KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
    90     KEEP (*(SORT(.ctors*)))
     90    KEEP (*(SORT(.ctors.*)))
     91    KEEP (*(.ctors))
    9192    KEEP (*crtbegin.o(.dtors))
    9293    KEEP (*crtbegin?.o(.dtors))
    9394    KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
    94     KEEP (*(SORT(.dtors*)))
     95    KEEP (*(SORT(.dtors.*)))
     96    KEEP (*(.dtors))
    9597
    9698    _rodata_start = . ;
Note: See TracChangeset for help on using the changeset viewer.