Discussion:
[PATCH] newlib/configure.host: Set have_init_fini to no for OpenRISC
Stafford Horne
2018-11-02 22:00:02 UTC
Permalink
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 <***@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
Corinna Vinschen
2018-11-05 09:03:29 UTC
Permalink
Post by Stafford Horne
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.
---
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
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
Stafford Horne
2018-11-05 21:41:39 UTC
Permalink
Post by Corinna Vinschen
Post by Stafford Horne
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.
---
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

Loading...