This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: GAS does not know what format to use for target z80-unkown-none


On Sat, Sep 06, 2008 at 07:29:01PM -0400, Terry Mackintosh wrote:
> There are a great deal of docs on using binutils, but there seems to be 
> very little on building it.  The best I've been able to figure out is 
> that when running ./configure, it needs either or both of 
> --enable-targets=z80-unknown-none or --target=z80-unknown-none.

Nope.  --target=z80-unknown-coff.  Knowing the target triple is one of
those things you just have to know for cross toolchains, unless you
are willing to poke through various configure scripts like
gas/configure.tgt.

With most targets you can use contractions like --target=z80-coff, but
this doesn't work for z80 since the top level config.sub doesn't know
anything about z80.  Fixed as follows.  Ben, can you add this to git
config sources?

Index: config.sub
===================================================================
RCS file: /cvs/src/src/config.sub,v
retrieving revision 1.70
diff -u -p -r1.70 config.sub
--- config.sub	14 Apr 2008 09:28:35 -0000	1.70
+++ config.sub	7 Sep 2008 04:07:32 -0000
@@ -288,7 +288,7 @@ case $basic_machine in
 	| v850 | v850e \
 	| we32k \
 	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
-	| z8k)
+	| z8k | z80)
 		basic_machine=$basic_machine-unknown
 		;;
 	m6811 | m68hc11 | m6812 | m68hc12)
@@ -375,7 +375,7 @@ case $basic_machine in
 	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 	| xstormy16-* | xtensa*-* \
 	| ymp-* \
-	| z8k-*)
+	| z8k-* | z80-*)
 		;;
 	# Recognize the basic CPU types without company name, with glob match.
 	xtensa*)
@@ -1136,6 +1136,10 @@ case $basic_machine in
 		basic_machine=z8k-unknown
 		os=-sim
 		;;
+	z80-*-coff)
+		basic_machine=z80-unknown
+		os=-sim
+		;;
 	none)
 		basic_machine=none-none
 		os=-none

-- 
Alan Modra
Australia Development Lab, IBM


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