Fwd: [PATCH] newlib/configure.host: Set have_init_fini to no for OpenRISC

Joel Sherrill joel at rtems.org
Fri Nov 2 22:29:54 UTC 2018


When we switch to the new OpenRISC tools, how will this impact us?

--joel

---------- Forwarded message ---------
From: Stafford Horne <shorne at gmail.com>
Date: Fri, Nov 2, 2018 at 5:01 PM
Subject: [PATCH] newlib/configure.host: Set have_init_fini to no for
OpenRISC
To: Newlib <newlib at sourceware.org>
Cc: GCC patches <gcc-patches at gcc.gnu.org>, Openrisc <
openrisc at lists.librecores.org>, Richard Henderson <rth at twiddle.net>,
whitequark <whitequark at whitequark.org>, Stafford Horne <shorne at gmail.com>


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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20181102/dd35580e/attachment.html>


More information about the devel mailing list