This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RISC-V: GCC crti.S vs. Newlib __libc_init_array()
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: Newlib <newlib at sourceware dot org>
- Date: Wed, 25 Jul 2018 12:02:54 +0200
- Subject: RISC-V: GCC crti.S vs. Newlib __libc_init_array()
Hello,
the GCC provided libgcc/config/riscv/crti.S and
libgcc/config/riscv/crtn.S files are empty on RISC-V, e.g. they contain
no definitions of _init and _fini. This leads to undefined references in
Newlib provided __libc_init_array() and __libc_fini_array(). I would
like to fix this. Should this be done via some configure test or a
__riscv machine define in newlib/libc/misc/init.c and
newlib/libc/misc/fini.c?
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.