[patch] Libgloss: fix for building mips16.

David Ung davidu@mips.com
Thu Oct 13 16:48:00 GMT 2005


This patch fixes the problem of trying to build libgloss for mips16.  As
cygmon.c cannot be compiled with mips16 since it uses "syscall".
ok?

David.

	* mips/Makefile.in: Add rule for cygmon.o and pass the -mno-mips16
	option since it uses the syscall instruction.

Index: libgloss/mips/Makefile.in
===================================================================
RCS file: /cvs/src/src/libgloss/mips/Makefile.in,v
retrieving revision 1.6
diff -c -p -b -r1.6 Makefile.in
*** libgloss/mips/Makefile.in	28 Jun 2004 22:42:20 -0000	1.6
--- libgloss/mips/Makefile.in	13 Oct 2005 16:47:14 -0000
*************** cfe_mem.o: ${srcdir}/cfe_mem.c ${srcdir}
*** 243,248 ****
--- 243,251 ----
  cma101.o: ${srcdir}/cma101.c
  	$(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) -mno-mips16 ${srcdir}/cma101.c
  
+ # cygmon can not be compiled 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



More information about the Binutils mailing list