* 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

@@ -80,12 +80,8 @@ SECTIONS
{
. = ALIGN(2);
PROVIDE (_start = .);
KEEP (*(.crt_init))
KEEP (*(.crt_bss))
KEEP (*(.crt_movedata))
KEEP (*(.crt_main))
KEEP (*(.lowtext))
*(.text .stub .text.* .gnu.linkonce.t.* .text:*)
KEEP (*(SORT(.crt_*)))
*(.lowtext .text .stub .text.* .gnu.linkonce.t.* .text:*)
KEEP (*(.text.*personality*))
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)