Support for Hitachi SH
authorSteve Chamberlain <sac@cygnus>
Tue, 27 Apr 1993 01:32:09 +0000 (01:32 +0000)
committerSteve Chamberlain <sac@cygnus>
Tue, 27 Apr 1993 01:32:09 +0000 (01:32 +0000)
gas/ChangeLog
gas/config/.Sanitize
gas/config/obj-coffbfd.c
gas/config/obj-coffbfd.h
gas/config/sh.mt [new file with mode: 0644]

index 394b3a5f70ca4c185d9548cf84025e68176f98b8..dae96f7d410354aef2a0eee18959e577c867248a 100644 (file)
@@ -1,3 +1,8 @@
+Mon Apr 26 18:29:05 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
+
+       * config/tc-sh.ch, config/tc-sh.h: New files supporting Hitachi
+       SH.
+
 Mon Apr 26 12:28:27 1993  Ian Lance Taylor  (ian@cygnus.com)
 
        * expr.c (operand): Fix unary plus operator (previously was the
index d31f1963261fdc6b7e48867a665d976eb8ea8ec9..29b048d870ff5b45d0fcb4eb3a806c105a2fc45d 100644 (file)
@@ -18,6 +18,7 @@
 Do-first:
 
 
+
 # All files listed between the "Things-to-keep:" line and the
 # "Files-to-sed:" line will be kept.  All other files will be removed.
 # Directories listed in this section will have their own Sanitize
@@ -80,6 +81,7 @@ obj-ieee.c
 obj-ieee.h
 obj-vms.c
 obj-vms.h
+sh.mt
 sparc.mt
 tc-a29k.c
 tc-a29k.h
@@ -106,6 +108,8 @@ tc-ns32k.c
 tc-ns32k.h
 tc-rs6000.c
 tc-rs6000.h
+tc-sh.c
+tc-sh.h
 tc-sparc.c
 tc-sparc.h
 tc-tahoe.c
index be47f48f6ff7846ccb5d6f6a3ffb2370093dae22..d643442db95fb949a2e32ae1e6a92c618e7f6c46 100644 (file)
@@ -359,7 +359,6 @@ DEFUN (do_relocs_for, (abfd, h, file_cursor),
          struct external_reloc *ext_ptr;
          struct external_reloc *external_reloc_vec;
          unsigned int external_reloc_size;
-         unsigned int count = 0;
          unsigned int base = segment_info[idx].scnhdr.s_paddr;
          fixS *fix_ptr = segment_info[idx].fix_root;
          nrelocs = count_entries_in_chain (idx);
@@ -1609,9 +1608,6 @@ DEFUN (crawl_symbols, (h, abfd),
 {
 
   unsigned int i;
-  unsigned int ptr = 0;
-
-
   symbolS *symbolP;
 
   /* Initialize the stack used to keep track of the matching .bb .be */
index a859f6c9947318e7c331b6770f3d6a3e15df3810..7cde04d27ca1c4cd033deab3a6697a7004171b83 100644 (file)
 #define TARGET_FORMAT "coff-h8500"
 #endif
 
+#ifdef TC_SH
+#include "coff/sh.h"
+#define TARGET_FORMAT "coff-sh"
+#endif
+
 #ifdef TC_M68K
 #include "coff/m68k.h"
 #define TARGET_FORMAT "coff-m68k"
diff --git a/gas/config/sh.mt b/gas/config/sh.mt
new file mode 100644 (file)
index 0000000..e990aeb
--- /dev/null
@@ -0,0 +1,3 @@
+TARG_CPU_DEPENDENTS=$(srcdir)/../opcodes/h8500-opc.h
+LOCAL_LOADLIBES=../bfd/libbfd.a
+TDEFINES=-DBFD_HEADERS -DMANY_SEGMENTS -DBFD