newlib/libgloss/msp430
Jozef Lawrynowicz f811485ffb MSP430: Make the inclusion of run_*_array fns depend on defined assembler symbols
Many of the MSP430 crt functions (e.g. to initialize bss) are linked
"dynamically", based on symbols defined in the program.
The GNU assembler defines the symbols corresponding to the crt
functions by examining the section names in the input file.

If GCC has been configured with --enable-initfini-array, then
.init_array and .fini_array will hold pointers to global
constructors/destructors. These sections can also hold functions that
need to be executed for other purposes.

The attached patch puts the __crt0_run_{preinit,init,fini}_array and
__crt0_run_array functions in their own object files, so they will
only be linked when needed.

Successfully regtested the DejaGNU GCC testsuite using the binutils and
newlib changes together with GCC trunk configured with
--enable-initfini-array.
2019-04-18 10:29:24 +02:00
..
Makefile.in MSP430: Make the inclusion of run_*_array fns depend on defined assembler symbols 2019-04-18 10:29:24 +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: Make the inclusion of run_*_array fns depend on defined assembler symbols 2019-04-18 10:29:24 +02:00
crt_bss.S
crtn.S MSP430: Make the inclusion of run_*_array fns depend on defined assembler symbols 2019-04-18 10:29:24 +02:00
gcrt0.S
intr_vectors.ld
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 Fix typo in the name of the MSP430 attribute section of example MSP430 linker scripts. 2016-04-07 12:13:10 +01:00
msp430xl-sim.ld Fix typo in the name of the MSP430 attribute section of example MSP430 linker scripts. 2016-04-07 12:13:10 +01: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