aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-04-27 01:32:09 +0000
committerSteve Chamberlain <sac@cygnus>1993-04-27 01:32:09 +0000
commit4a1bbbe75b7720522063f194bc3a0d1fbabc1a79 (patch)
tree6c38e2ae65fc9ae7ec831ea0af6855660ec57b38 /gas/config
parent8679a71fc8e538c7818fc3aea1d0e2270510de77 (diff)
downloadgdb-4a1bbbe75b7720522063f194bc3a0d1fbabc1a79.zip
gdb-4a1bbbe75b7720522063f194bc3a0d1fbabc1a79.tar.gz
gdb-4a1bbbe75b7720522063f194bc3a0d1fbabc1a79.tar.bz2
Support for Hitachi SH
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/.Sanitize4
-rw-r--r--gas/config/obj-coffbfd.c4
-rw-r--r--gas/config/obj-coffbfd.h5
-rw-r--r--gas/config/sh.mt3
4 files changed, 12 insertions, 4 deletions
diff --git a/gas/config/.Sanitize b/gas/config/.Sanitize
index d31f196..29b048d 100644
--- a/gas/config/.Sanitize
+++ b/gas/config/.Sanitize
@@ -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
diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c
index be47f48..d643442 100644
--- a/gas/config/obj-coffbfd.c
+++ b/gas/config/obj-coffbfd.c
@@ -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 */
diff --git a/gas/config/obj-coffbfd.h b/gas/config/obj-coffbfd.h
index a859f6c..7cde04d 100644
--- a/gas/config/obj-coffbfd.h
+++ b/gas/config/obj-coffbfd.h
@@ -54,6 +54,11 @@
#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
index 0000000..e990aeb
--- /dev/null
+++ b/gas/config/sh.mt
@@ -0,0 +1,3 @@
+TARG_CPU_DEPENDENTS=$(srcdir)/../opcodes/h8500-opc.h
+LOCAL_LOADLIBES=../bfd/libbfd.a
+TDEFINES=-DBFD_HEADERS -DMANY_SEGMENTS -DBFD