This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] RISC-V: Do not use _init/_fini
- From: Jim Wilson <jimw at sifive dot com>
- To: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Cc: Newlib <newlib at sourceware dot org>
- Date: Fri, 27 Jul 2018 09:20:32 -0700
- Subject: Re: [PATCH] RISC-V: Do not use _init/_fini
- References: <20180727082847.24385-1-sebastian.huber@embedded-brains.de>
On Fri, Jul 27, 2018 at 1:28 AM, Sebastian Huber
<sebastian.huber@embedded-brains.de> wrote:
> diff --git a/newlib/libc/misc/local.h b/newlib/libc/misc/local.h
> new file mode 100644
> index 000000000..dc16e11b7
> --- /dev/null
> +++ b/newlib/libc/misc/local.h
> @@ -0,0 +1,29 @@
> ...
> +#if defined __riscv
> +#define _MISC_NO_INIT_FINI
> +#endif
I think this should be in newlib/configure.host instead. To keep all
of the RISC-V settings in one place instead of scattered all around.
Jim