newlib/libgloss/msp430
Jozef Lawrynowicz 748970c833 MSP430: Word align __*_array_start symbols in sim linker scripts
__{preinit,init,fini}_array_start symbols must be word aligned in
linker scripts. If the section preceding the __*_array_start symbol
has an odd size, then a NULL byte will be present between the start
symbol and the .*_array section itself, when the section gets
automatically word-aligned.

This results in a branch to an invalid address when the CRT startup
code tries to run through the functions listed in the array sections.

>From de115144d05ecbaa82c9c737cc261715ca4b7d67 Mon Sep 17 00:00:00 2001
From: Jozef Lawrynowicz <jozef.l@mittosystems.com>
Date: Mon, 3 Aug 2020 19:09:46 +0100
Subject: [PATCH 1/2] MSP430: Word align __*_array_start symbols in sim linker
 scripts

__{preinit,init,fini}_array_start symbols must be word aligned in
linker scripts. If the section preceding the __*_array_start symbol
has an odd size, then a NULL byte will be present between the start
symbol and the .*_array section itself, when the section gets
automatically word-aligned.

This results in a branch to an invalid address when the CRT startup
code tries to run through the functions listed in the array sections.
2020-08-07 15:16:43 +02:00
..
Makefile.in MSP430: Add missing build rule for unlink() to libgloss Makefile 2019-10-25 18:04:46 +02:00
cio.S Update CIO hooks to be more flexible. 2015-12-17 16:22:52 -05:00
cio.h
ciosyscalls.S Seperate MSP430 cio syscalls into individual function sections. 2016-02-09 13:44:05 +00:00
configure
configure.in
crt0.S MSP430: Remove .init/.fini sections 2019-07-24 16:22:00 -04:00
crt_bss.S * msp430/Makefile.in (SCRIPTS): Add intr_vectors.ld. 2013-09-18 07:38:13 +00:00
gcrt0.S
intr_vectors.ld * msp430/Makefile.in (SCRIPTS): Add intr_vectors.ld. 2013-09-18 07:38:13 +00:00
memmodel.h Adds support for placing MSP430 code and data into either low memory or high memory. 2015-05-27 13:30:19 +02:00
msp430-sim.ld MSP430: Word align __*_array_start symbols in sim linker scripts 2020-08-07 15:16:43 +02:00
msp430xl-sim.ld MSP430: Word align __*_array_start symbols in sim linker scripts 2020-08-07 15:16:43 +02:00
sbrk.c
syscalls.S Add support for persistent data to the MSP430 linker scripts. 2015-10-06 17:33:16 +01:00
unlink.c * msp430/Makefile.in (NOSYS_OBJS): Add unlink.o. 2014-04-30 11:30:14 +00:00
write.c Fix definition of write() to use const char * for the type of the buffer 2019-04-15 14:21:59 +02:00