From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13990 invoked by alias); 27 Mar 2002 09:09:33 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 13870 invoked from network); 27 Mar 2002 09:09:31 -0000 Received: from unknown (HELO hotmail.com) (207.68.163.180) by sources.redhat.com with SMTP; 27 Mar 2002 09:09:31 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 27 Mar 2002 01:09:31 -0800 Received: from 210.83.44.13 by sea1fd.sea1.hotmail.msn.com with HTTP; Wed, 27 Mar 2002 09:09:31 GMT X-Originating-IP: [210.83.44.13] From: "David zhang" To: binutils@sources.redhat.com Cc: hp@bitrange.com Bcc: Subject: problem of porting gas Date: Wed, 27 Mar 2002 01:09:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 27 Mar 2002 09:09:31.0493 (UTC) FILETIME=[1B0BD150:01C1D56F] X-SW-Source: 2002-03/txt/msg00525.txt.bz2 Hi All, Probably a silly question but please excuse me. I have a problem in the procedure of port gas to mipsx3. I have taken the mmix porting as the example.I can't configure the target to mipsx3 despite I update the configure.in and makefile.am like the following. Can u give me some pointers in this regard ? I have added the mipsx3 target in *Makefile.am *configure.in, created the files * /config/tc-mipsx3.c * /config/tc-mipsx3.h * ../include/opcode/mipsx3.h * ../opcodes/mipsx3-opc.c What's wrong about this following? #bash: ./configure --target=mipsx3 ....... checking target system type... Invalid configuration `mipsx3': machine `mipsx3' not recognized ...... configure: error: GAS does not know what format to use for target Index: Makefile.am =================================================================== RCS file: /cvs/src/src/gas/Makefile.am,v retrieving revision 1.41 diff -p -c -r1.41 Makefile.am *** Makefile.am 2001/09/30 15:55:46 1.41 --- Makefile.am 2001/09/30 16:27:53 *************** CPU_TYPES = \ *** 60,65 **** --- 60,66 ---- m88k \ mcore \ mips \ + mipsx3 \ mn10200 \ mn10300 \ ns32k \ # Object format types. This is only used for dependency information. OBJ_FORMATS = \ aout \ @@ -101,7 +102,7 @@ case $$o in \ aout) \ case $$c in \ - a29k | arm | cris | i386 | m68k | mips | ns32k | sparc | tahoe | tic30 | vax) \ + a29k | arm | cris | i386 | m68k | mips | mipsx3 | ns32k | sparc | tahoe | tic30 | vax) \ valid=yes ;; \ esac ;; \ bout) \ *************** TARGET_CPU_CFILES = \ *** 244,249 **** --- 245,251 ---- config/tc-m88k.c \ config/tc-mcore.c \ config/tc-mips.c \ + config/tc-mipsx3.c \ config/tc-mn10200.c \ config/tc-mn10300.c \ config/tc-ns32k.c \ *************** TARGET_CPU_HFILES = \ *** 287,292 **** --- 289,295 ---- config/tc-m88k.h \ config/tc-mcore.h \ config/tc-mips.h \ + config/tc-mipsx3.h \ config/tc-mn10200.h \ config/tc-mn10300.h \ config/tc-ns32k.h \ *************** DEPTC_mips_elf = $(srcdir)/config/obj-el *** 1186,1191 **** --- 1189,1199 ---- $(INCDIR)/obstack.h $(INCDIR)/safe-ctype.h $(INCDIR)/opcode/mips.h \ itbl-ops.h $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h \ ecoff.h $(INCDIR)/coff/sym.h $(INCDIR)/coff/ecoff.h +DEPTC_mipsx3_aout = $(srcdir)/config/obj-aout.h $(srcdir)/config/tc-mipsx3.h \ + $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h $(INCDIR)/obstack.h \ + $(INCDIR)/opcode/mipsx3.h DEPTC_mn10200_coff = $(srcdir)/config/obj-coff.h $(srcdir)/config/tc-mn10200.h \ $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h \ $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \ *************** DEPOBJ_mips_elf = $(srcdir)/config/obj-e *** 1577,1582 **** --- 1585,1594 ---- subsegs.h $(INCDIR)/obstack.h ecoff.h $(INCDIR)/coff/sym.h \ $(INCDIR)/coff/ecoff.h $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h \ $(INCDIR)/aout/aout64.h +DEPOBJ_mipsx3_aout = $(srcdir)/config/obj-aout.h $(srcdir)/config/tc-mipsx3.h \ + $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h \ + $(INCDIR)/obstack.h DEPOBJ_mn10200_coff = $(srcdir)/config/obj-coff.h $(srcdir)/config/tc-mn10200.h \ $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h \ $(INCDIR)/obstack.h subsegs.h *************** DEP_mips_ecoff = $(srcdir)/config/obj-ec *** 1885,1890 **** --- 1897,1905 ---- DEP_mips_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \ $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ $(INCDIR)/bfdlink.h $(srcdir)/config/tc-mips.h +DEP_mipsx3_aout = $(srcdir)/config/obj-aout.h $(srcdir)/config/tc-mipsx3.h \ + $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h DEP_mn10200_coff = $(srcdir)/config/obj-coff.h $(srcdir)/config/tc-mn10200.h \ $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h DEP_mn10200_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \ Index: configure.in =================================================================== RCS file: /cvs/src/src/gas/configure.in,v retrieving revision 1.78 diff -p -c -r1.78 configure.in *** configure.in 2001/09/14 11:46:40 1.78 --- configure.in 2001/09/30 16:28:05 *************** changequote([,])dnl *** 364,369 **** --- 364,370 ---- AC_DEFINE(MIPS_STABS_ELF, 1, [Use ELF stabs for MIPS, not ECOFF stabs]) ;; + mipsx3-*-*) fmt=aout bfd_gas=yes ;; mn10200-*-*) fmt=elf bfd_gas=yes ;; mn10300-*-*) fmt=elf bfd_gas=yes ;; openrisc-*-*) fmt=elf bfd_gas=yes ;; @@ -479,6 +479,7 @@ ia64*-*) bfd_gas=yes ;; mips-*) bfd_gas=yes ;; + mipsx3-*) bfd_gas=yes ;; ns32k-*) bfd_gas=yes ;; ppc-*) bfd_gas=yes ;; sparc-*) bfd_gas=yes ;; strongarm-*) bfd_gas=yes ;; Thanks for Any help David.Z _________________________________________________________________ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger£º http://messenger.microsoft.com/cn