Sebastian Huber
6158b30e3e
RISC-V: Do not use _init/_fini
...
Introduce new host configuration variable "have_init_fini" which is set
to "yes" by default. Override it for RISC-V to "no".
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2018-07-30 10:47:57 +02:00
Jeff Johnston
ced5f59df9
2010-06-04 Mark Mitchell <mark@codesourcery.com>
...
* libc/stdlib/__call_atexit.c (__libc_fini): Declare.
(register_fini): New function.
* libc/misc/init.c (_fini): Remove.
(__libc_fini_array): Likewise.
* libc/misc/fini.c: New file.
* libc/misc/Makefile.am (LIB_SOURCES): Add fini.c.
* libc/misc/Makefile.in: Regenerate.
2010-06-04 15:30:40 +00:00
Jeff Johnston
c4c8a3fd46
2009-04-16 Jeff johnston <jjohnstn@redhat.com>
...
* libc/misc/init.c (__libc_fini_array): Process fini_array in
reverse order as compliant with the ELF specification.
2009-04-16 19:16:41 +00:00
Jeff Johnston
f7a74742e6
2005-01-07 Paul Brook <paul@codesourcery.com>
...
* configure.in: Add test for .init_array.
* configure: Regenerate.
* newlib.hin: Add HAVE_INITFINI_ARRAY.
* libc/misc/Makefile.am: Add init.c
* libc/misc/Makefile.in: Regenerate.
* libc/misc/init.c: New file.
* libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
_init/_fini if they exist.
2005-01-07 18:04:39 +00:00