* 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:
@@ -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
|
||||
|
Reference in New Issue
Block a user