diff mbox series

newlib/configure.host: Set have_init_fini to no for OpenRISC

Message ID 20181102220002.29760-1-shorne@gmail.com
State New
Headers show
Series newlib/configure.host: Set have_init_fini to no for OpenRISC | expand

Commit Message

Stafford Horne Nov. 2, 2018, 10 p.m. UTC
The new GCC port for OpenRISC will use the init_fini_array only and not
provide the init() and fini() functions.  Disable the function usage by
default as its no longer needed.

Signed-off-by: Stafford Horne <shorne@gmail.com>
---
 newlib/configure.host | 1 +
 1 file changed, 1 insertion(+)

Comments

Corinna Vinschen Nov. 5, 2018, 9:03 a.m. UTC | #1
On Nov  3 07:00, Stafford Horne wrote:
> The new GCC port for OpenRISC will use the init_fini_array only and not
> provide the init() and fini() functions.  Disable the function usage by
> default as its no longer needed.
> 
> Signed-off-by: Stafford Horne <shorne@gmail.com>
> ---
>  newlib/configure.host | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/newlib/configure.host b/newlib/configure.host
> index 27bce36a1..6c49cb750 100644
> --- a/newlib/configure.host
> +++ b/newlib/configure.host
> @@ -279,6 +279,7 @@ case "${host_cpu}" in
>  	;;
>    or1k*|or1knd*)
>  	machine_dir=or1k
> +	have_init_fini=no
>  	;;
>    powerpc*)
>  	machine_dir=powerpc
> -- 
> 2.17.2

Pushed.


Thanks,
Corinna
Stafford Horne Nov. 5, 2018, 9:41 p.m. UTC | #2
On Mon, Nov 05, 2018 at 10:03:29AM +0100, Corinna Vinschen wrote:
> On Nov  3 07:00, Stafford Horne wrote:
> > The new GCC port for OpenRISC will use the init_fini_array only and not
> > provide the init() and fini() functions.  Disable the function usage by
> > default as its no longer needed.
> > 
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> > ---
> >  newlib/configure.host | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/newlib/configure.host b/newlib/configure.host
> > index 27bce36a1..6c49cb750 100644
> > --- a/newlib/configure.host
> > +++ b/newlib/configure.host
> > @@ -279,6 +279,7 @@ case "${host_cpu}" in
> >  	;;
> >    or1k*|or1knd*)
> >  	machine_dir=or1k
> > +	have_init_fini=no
> >  	;;
> >    powerpc*)
> >  	machine_dir=powerpc
> > -- 
> > 2.17.2
> 
> Pushed.

Thank you,

-Stafford
diff mbox series

Patch

diff --git a/newlib/configure.host b/newlib/configure.host
index 27bce36a1..6c49cb750 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -279,6 +279,7 @@  case "${host_cpu}" in
 	;;
   or1k*|or1knd*)
 	machine_dir=or1k
+	have_init_fini=no
 	;;
   powerpc*)
 	machine_dir=powerpc