newlib/libgloss
Jozef Lawrynowicz 884b05b54e MSP430: Remove .init/.fini sections
The .init/.fini sections are not required for msp430-elf, and add unnecessary
code bloat to the CRT library. These sections are specified as "unused" by
the MSP430 EABI.

.init existed to call __crt0_run_{init,preinit}_array which run through
the functions in .{init,preinit}_array.
__crt0_run_{init,preinit}_array are already dynamically included like the
other crt0 functions, so these can be placed before the call to main,
which ensures they are still called if needed.
With these functions moved, .init has no purpose and can be removed.

.fini existed to call __crt0_run_fini_array.
However, the "__msp430_fini" symbol which marks the start of .fini has
never been used, so no termination routines have ever been run for
msp430. On returning from main(), _exit() is called which just loops
forever.
So there is no current expectation that __crt0_run_fini_array will
get called by the CRT code. Further work is to ensure functions
registered with atexit can be optionally called during program termination,
and then __crt0_run_fini_array can be registered with atexit during
program initialization.

The mechanisms for supporting the "-minrt" option have also been removed.
"-minrt" enabled a "minimum runtime environment" by removing calls to
functions which run global static initializers and constructors. Since
this behaviour is now dynamic, and these functions are only included
when needed, the minrt versions of the CRT object files are no longer
required.
2019-07-24 16:22:00 -04:00
..
aarch64 Initialize SVE system registers. 2018-10-31 11:14:57 +00:00
arc Add JLI support. 2017-06-14 14:51:22 +02:00
arm Stack Pointer and Stack Limit initialization refactored. 2019-07-23 10:00:06 +02:00
bfin ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
config libgloss: change 'q' flag to 'r' in ar call 2012-03-13 01:47:40 +00:00
cr16 ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
cris Committed, CRIS port: fix fallout from time_t defaulting to 64 bits, part 1 2018-09-13 17:57:11 +02:00
crx ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
d30v 2013-11-21 Daniel Ramirez <javamonn@gmail.com> 2013-11-21 16:42:17 +00:00
doc Add libgloss install-pdf and install-html targets. 2018-11-20 11:13:34 +01:00
epiphany ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
fr30 Remove GPL licencsing 2010-12-17 10:13:31 +00:00
frv ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
ft32 ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
hp74x
i386
i960 2013-11-21 Daniel Ramirez <javamonn@gmail.com> 2013-11-21 16:42:17 +00:00
iq2000 2012-03-09 Jeff Johnston <jjohnstn@redhat.com> 2012-03-09 20:28:57 +00:00
libnosys ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
lm32 ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
m32c * m32c/sbrk.c (sbrk): Change to take ptrdiff_t, not int. 2009-07-08 20:54:19 +00:00
m32r 2009-03-16 Jeff Johnston <jjohnstn@redhat.com> 2009-03-16 19:26:59 +00:00
m68hc11
m68k Add semihosting docs for nios2 and m68k 2019-03-14 10:23:25 -04:00
mcore ansification: remove _EXFUN, _EXFUN_NOTHROW 2018-01-17 11:47:29 -06:00
mep 2015-01-05 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> 2015-01-05 17:36:34 +00:00
microblaze libgloss: microblaze: adjust handlers to be weak. 2018-05-03 15:16:13 -04:00
mips Make .data section placement coincide with _fdata symbol 2019-05-15 15:30:25 -04:00
mn10200 2012-03-09 Jeff Johnston <jjohnstn@redhat.com> 2012-03-09 20:28:57 +00:00
mn10300 2012-03-09 Jeff Johnston <jjohnstn@redhat.com> 2012-03-09 20:28:57 +00:00
moxie ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
msp430 MSP430: Remove .init/.fini sections 2019-07-24 16:22:00 -04:00
mt 2015-01-05 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> 2015-01-05 17:36:34 +00:00
nds32 * libgloss/nds32/_exit.S: Finish with an infinite loop in _exit. 2014-12-15 13:30:07 +00:00
nios2 Add a dummy interrupt handler to nios2 crt0.s. 2019-04-03 18:02:47 +02:00
or1k libgloss: Remove duplicate definition of environ 2017-02-13 09:16:51 +01:00
pa
riscv RISC-V: Add _LITE_EXIT in crt0.S. 2019-05-22 17:41:25 -07:00
rl78 rl78: Don't output CR when LF is encountered in write(). 2015-12-16 13:38:38 -07:00
rs6000 2013-05-30 Jeff Johnston <jjohnstn@redhat.com> 2013-05-30 22:44:04 +00:00
rx Add a check that the data area does not overrun the stack. 2015-05-27 13:30:19 +02:00
sh
sparc * sparc/crt0.S: Declare use of system registers. 2015-01-22 17:38:39 +00:00
sparc_leon ansification: remove _HAVE_STDC 2018-01-17 11:47:30 -06:00
spu ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
testsuite
tic6x ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
v850 Add comment in the v850's crt0.S file noting that separate LMA and VMA addresses for data sections are not currently supported. 2016-05-26 12:08:47 +01:00
visium * COPYING.LIBGLOSS: Add Controls and Data Services copyright. 2015-01-21 18:27:47 +00:00
wince
xc16x ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
xstormy16 ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
ChangeLog Deprecate newlib and winsup ChangeLog files 2016-01-28 11:15:33 +01:00
ChangeLog-2015 Deprecate newlib and winsup ChangeLog files 2016-01-28 11:15:33 +01:00
Makefile.in Add libgloss install-pdf and install-html targets. 2018-11-20 11:13:34 +01:00
README 2014-12-15 Stefan Wallentowitz <stefan.wallentowitz@tum.de> 2014-12-15 20:09:28 +00:00
acinclude.m4
aclocal.m4
close.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
configure Add BSP and semihosting library for nios2-generic-nommu QEMU emulation. 2018-08-08 10:53:03 +02:00
configure.in Add BSP and semihosting library for nios2-generic-nommu QEMU emulation. 2018-08-08 10:53:03 +02:00
debug.c
debug.h
fstat.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
getpid.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
glue.h
isatty.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
kill.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
lseek.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
multi-build.in Fix multido compilation on ARM 2017-10-09 19:03:52 +02:00
open.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
print.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
putnum.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
read.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sbrk.c
stat.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
syscall.h
unlink.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
write.c ansification: remove _EXFUN, _EXFUN_NOTHROW 2018-01-17 11:47:29 -06:00

README

bfin	- Analog Devices Blackfin processor.
sparc	- Fujitsu Sparclite board. Works on the ex930, ex931, ex933
hp74x	- Hewlett Packard HP742 board. Also some support for the hp743.
m68hc11 - Motorola 68HC11 or 68HC12 support.
m68k	- Motorola MVME135 and IDP board. For CPU32 systems.
mep	- Toshiba Media Processor.
pa	- WinBond and Oki boards with a PA.
mips	- R3000 support. Array Tech LSI33k based RAID disk controller.
lm32    - Lattice Mico32 simulator.
epiphany - Adapteva Epiphany multicore processor.
or1k	- OpenRISC 1000 processor.