This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] libgloss buildfix for mips16
- From: Thiemo Seufer <ths at networkno dot de>
- To: newlib at sources dot redhat dot com
- Date: Wed, 16 Aug 2006 11:44:19 +0100
- Subject: [PATCH] libgloss buildfix for mips16
Hello All,
the appended patch builds cygmon.c always as non-mips16 code, this is
necessary because cygmon uses the syscall instruction which doesn't
exist in mips16.
Thiemo
2006-08-16 David Ung <davidu@mips.com>
* mips/Makefile.in: Add rule for cygmon.o and pass the -mno-mips16
option since it uses the syscall instruction.
Index: binutils/src/libgloss/mips/Makefile.in
===================================================================
--- libgloss/mips/Makefile.in.old 2004-06-28 23:42:20.000000000 +0100
+++ libgloss/mips/Makefile.in 2006-06-01 13:41:02.000000000 +0100
@@ -243,6 +243,9 @@
cma101.o: ${srcdir}/cma101.c
$(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) -mno-mips16 ${srcdir}/cma101.c
+# cygmon can not be compiled as mips16 since it uses the syscall instruction
+cygmon.o: ${srcdir}/cygmon.c
+ $(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) -mno-mips16 ${srcdir}/cygmon.c
syscalls.o: ${srcdir}/syscalls.c