* msp430/Makefile.in (crt0-minrt.o, crtn-minrt.o): New. Build

from crt0.S with -DMINRT.
(CRT_OBJS): Expand.
(crt_%.o): New rule pattern.  Build multiple objects from crt0.S.
* msp430/crt0.S: Further break out functionality.  Support -DMINRT
that omits all init/fini logic.
* msp430/crtn.S: Likewise.
* msp430/msp430-sim.ld: Wildcard all .crt_* sections, sorted.
* msp430/msp430.ld: Likewise.
* msp430/msp430xl-sim.ld: Likewise.
This commit is contained in:
DJ Delorie
2014-01-30 02:46:34 +00:00
parent 25833f57c1
commit ed94d4a4aa
7 changed files with 96 additions and 24 deletions

View File

@@ -13,6 +13,7 @@
#include "memmodel.h"
#ifndef MINRT
.section .init,"ax"
call_ #_msp430_run_preinit_array
call_ #_msp430_run_init_array
@@ -28,3 +29,4 @@ __msp430_fini_end:
.text
#endif