This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] : Correct build of newlib for ARC .


Jeff,



Another solution to this problem is to turn on the REENTRANT_SYSCALLS_PROVIDED flag which should solve the linking problem you are having and not cause an error when the call is made. Please try the alternate patch I have attached here and let me know if it solves your problems. If yes, I will change the syscalls.c file to reference __errno_r instead of errno.

Thanks for reviewing the patch . Yes your suggestion seems to work correctly.



As an aside, the syscalls should eventually be migrated into the libgloss directory.

I will look at migrating these into libgloss and get back .


cheers
Ramana


-- Jeff J.



------------------------------------------------------------------------


Index: configure.host
===================================================================
RCS file: /cvs/cvsfiles/devo/newlib/configure.host,v
retrieving revision 1.146
diff -u -r1.146 configure.host
--- configure.host	17 Mar 2005 20:17:52 -0000	1.146
+++ configure.host	22 Mar 2005 20:46:49 -0000
@@ -587,6 +587,9 @@
 	  newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
 	fi
 	;;
+  arc*)
+	newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED"
+	;;
   avr*)
 	newlib_cflags="${newlib_cflags} -DNO_EXEC -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
 	;;


--
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]