diff options
author | Nick Clifton <nickc@redhat.com> | 2005-07-18 14:13:36 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-07-18 14:13:36 +0000 |
commit | e729279b04301d65a619b1bad04b6aff686899b2 (patch) | |
tree | d8799f6fa285cb390b76df693af31c37d29298c8 /gas | |
parent | 9edde48e00d4278aa430b25b96ee8703ebf3d880 (diff) | |
download | gdb-e729279b04301d65a619b1bad04b6aff686899b2.zip gdb-e729279b04301d65a619b1bad04b6aff686899b2.tar.gz gdb-e729279b04301d65a619b1bad04b6aff686899b2.tar.bz2 |
Fix building for MS1 and M32C.
Restore alpha- sorting to the architecture tables.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-m32c.c | 6 | ||||
-rw-r--r-- | gas/configure.tgt | 25 |
2 files changed, 17 insertions, 14 deletions
diff --git a/gas/config/tc-m32c.c b/gas/config/tc-m32c.c index 8ee44f8..1a9ca40 100644 --- a/gas/config/tc-m32c.c +++ b/gas/config/tc-m32c.c @@ -156,7 +156,7 @@ md_begin (void) gas_cgen_cpu_desc = m32c_cgen_cpu_open (CGEN_CPU_OPEN_MACHS, cpu_mach, CGEN_CPU_OPEN_ENDIAN, CGEN_ENDIAN_BIG, - CGEN_CPU_OPEN_ISAS, & m32c_isa, + CGEN_CPU_OPEN_ISAS, m32c_isa, CGEN_CPU_OPEN_END); m32c_cgen_init_asm (gas_cgen_cpu_desc); @@ -757,6 +757,7 @@ md_cgen_lookup_reloc (const CGEN_INSN * insn ATTRIBUTE_UNUSED, { M32C_OPERAND_DSP_24_U24, BFD_RELOC_24, 3 }, { M32C_OPERAND_DSP_32_U24, BFD_RELOC_24, 4 }, { M32C_OPERAND_DSP_40_U24, BFD_RELOC_24, 5 }, + { M32C_OPERAND_DSP_8_U24, BFD_RELOC_24, 1 }, /* Absolute relocs for 32-bit fields. */ { M32C_OPERAND_IMM_16_SI, BFD_RELOC_32, 2 }, @@ -782,7 +783,7 @@ md_cgen_lookup_reloc (const CGEN_INSN * insn ATTRIBUTE_UNUSED, fprintf (stderr, - "Error: tc-m32c.c:md_cgen_lookup_reloc Unimplemented relocation %d\n", + "Error: tc-m32c.c:md_cgen_lookup_reloc Unimplemented relocation for operand %d\n", operand->type); return BFD_RELOC_NONE; @@ -1014,4 +1015,3 @@ m32c_is_colon_insn (char *start ATTRIBUTE_UNUSED) return 0; } - diff --git a/gas/configure.tgt b/gas/configure.tgt index 095e3f1..0311d06 100644 --- a/gas/configure.tgt +++ b/gas/configure.tgt @@ -30,9 +30,8 @@ eval `echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'` # endian and arch. # Note: This table is alpha-sorted, please try to keep it that way. case ${cpu} in - m32c) cpu_type=m32c endian=big ;; - am33_2.0) cpu_type=mn10300 endian=little ;; alpha*) cpu_type=alpha ;; + am33_2.0) cpu_type=mn10300 endian=little ;; arm*be|arm*b) cpu_type=arm endian=big ;; arm*) cpu_type=arm endian=little ;; c4x*) cpu_type=tic4x ;; @@ -43,18 +42,19 @@ case ${cpu} in ia64) cpu_type=ia64 ;; ip2k) cpu_type=ip2k endian=big ;; iq2000) cpu_type=iq2000 endian=big ;; + m32c) cpu_type=m32c endian=big ;; m32r) cpu_type=m32r endian=big ;; m32rle) cpu_type=m32r endian=little ;; - m6811|m6812|m68hc12) cpu_type=m68hc11 ;; - m680[012346]0) cpu_type=m68k ;; + m5200) cpu_type=m68k ;; m68008) cpu_type=m68k ;; + m680[012346]0) cpu_type=m68k ;; + m6811|m6812|m68hc12) cpu_type=m68hc11 ;; m683??) cpu_type=m68k ;; - m5200) cpu_type=m68k ;; m8*) cpu_type=m88k ;; - ms1) cpu_type=ms1 endian=big ;; maxq) cpu_type=maxq ;; mips*el) cpu_type=mips endian=little ;; mips*) cpu_type=mips endian=big ;; + ms1) cpu_type=ms1 endian=big ;; or32*) cpu_type=or32 endian=big ;; pjl*) cpu_type=pj endian=little ;; pj*) cpu_type=pj endian=big ;; @@ -63,16 +63,16 @@ case ${cpu} in rs6000*) cpu_type=ppc ;; s390x*) cpu_type=s390 arch=s390x ;; s390*) cpu_type=s390 arch=s390 ;; - sh5*) cpu_type=sh64 endian=big ;; sh5le*) cpu_type=sh64 endian=little ;; - sh64*) cpu_type=sh64 endian=big ;; + sh5*) cpu_type=sh64 endian=big ;; sh64le*) cpu_type=sh64 endian=little ;; + sh64*) cpu_type=sh64 endian=big ;; sh*le) cpu_type=sh endian=little ;; sh*) cpu_type=sh endian=big ;; - sparclite*) cpu_type=sparc arch=sparclite ;; - sparclet*) cpu_type=sparc arch=sparclet ;; sparc64*) cpu_type=sparc arch=v9-64 ;; sparc86x*) cpu_type=sparc arch=sparc86x ;; + sparclet*) cpu_type=sparc arch=sparclet ;; + sparclite*) cpu_type=sparc arch=sparclite ;; sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c. strongarm*be) cpu_type=arm endian=big ;; strongarm*b) cpu_type=arm endian=big ;; @@ -90,7 +90,6 @@ esac generic_target=${cpu_type}-$vendor-$os # Note: This table is alpha-sorted, please try to keep it that way. case ${generic_target} in - m32c-*-elf) fmt=elf ;; a29k-*-coff) fmt=coff ;; a29k-amd-udi) fmt=coff ;; a29k-amd-ebmon) fmt=coff ;; @@ -246,6 +245,8 @@ case ${generic_target} in iq2000-*-elf) fmt=elf ;; + m32c-*-elf) fmt=elf ;; + m32r-*-elf*) fmt=elf ;; m32r-*-linux*) fmt=elf em=linux;; @@ -308,6 +309,8 @@ case ${generic_target} in mn10300-*-linux*) fmt=elf em=linux ;; mn10300-*-*) fmt=elf ;; + ms1-*-elf) fmt=elf bfd_gas=yes ;; + msp430-*-*) fmt=elf ;; ns32k-pc532-mach*) fmt=aout em=pc532mach ;; |