aboutsummaryrefslogtreecommitdiff
path: root/bfd/mipsbsd.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-03-23 20:19:16 +0000
committerKen Raeburn <raeburn@cygnus>1993-03-23 20:19:16 +0000
commit07bb4e8abc1fb9b058d309c40f842379fe0d6896 (patch)
tree8cb3bb97c6f03e443445d067bb37e4ae44db95a3 /bfd/mipsbsd.c
parentdb15c6b17a61c220b1ae50f1a1c6821c30b818b7 (diff)
downloadgdb-07bb4e8abc1fb9b058d309c40f842379fe0d6896.zip
gdb-07bb4e8abc1fb9b058d309c40f842379fe0d6896.tar.gz
gdb-07bb4e8abc1fb9b058d309c40f842379fe0d6896.tar.bz2
delete non-mips-related code
Diffstat (limited to 'bfd/mipsbsd.c')
-rw-r--r--bfd/mipsbsd.c83
1 files changed, 16 insertions, 67 deletions
diff --git a/bfd/mipsbsd.c b/bfd/mipsbsd.c
index 5d1ce12..74b8010 100644
--- a/bfd/mipsbsd.c
+++ b/bfd/mipsbsd.c
@@ -58,10 +58,6 @@ static boolean MY(write_object_contents) PARAMS ((bfd *abfd));
#include "aout-target.h"
-/*
- * These really should be common to all BSD systems.
- * Also, to reduce space, should ifdef the individual cases if MINIMIZE=1.
- */
void
MY(set_arch_mach) (abfd, machtype)
bfd *abfd;
@@ -73,38 +69,6 @@ MY(set_arch_mach) (abfd, machtype)
/* Determine the architecture and machine type of the object file. */
switch (machtype) {
- case M_68010:
- case M_HP200:
- arch = bfd_arch_m68k;
- machine = 68010;
- break;
-
- case M_68020:
- case M_HP300:
- arch = bfd_arch_m68k;
- machine = 68020;
- break;
-
- case M_SPARC:
- arch = bfd_arch_sparc;
- machine = 0;
- break;
-
- case M_386:
- arch = bfd_arch_i386;
- machine = 0;
- break;
-
- case M_29K:
- arch = bfd_arch_a29k;
- machine = 0;
- break;
-
- case M_HPUX:
- arch = bfd_arch_m68k;
- machine = 0;
- break;
-
case M_MIPS1:
arch = bfd_arch_mips;
machine = 3000;
@@ -267,38 +231,23 @@ MY(reloc_howto_type_lookup) (abfd, code)
{
extern reloc_howto_type NAME(aout,ext_howto_table)[];
- switch (bfd_get_arch (abfd))
+ if (bfd_get_arch (abfd) != bfd_arch_mips)
+ return 0;
+
+ switch (code)
{
- case bfd_arch_sparc:
- switch (code)
- {
- default:
- return 0;
-#define IDX(i,j) case i: return &NAME(aout,ext_howto_table)[j]
- IDX (BFD_RELOC_CTOR, 2);
- IDX (BFD_RELOC_32, 2);
- IDX (BFD_RELOC_HI22, 8);
- IDX (BFD_RELOC_LO10, 11);
- IDX (BFD_RELOC_32_PCREL_S2, 6);
- }
- case bfd_arch_mips:
- switch (code)
- {
- case BFD_RELOC_32:
- return (&mips_howto_table_ext[MIPS_RELOC_32]);
- case BFD_RELOC_MIPS_JMP:
- return (&mips_howto_table_ext[MIPS_RELOC_JMP]);
- case BFD_RELOC_16_PCREL_S2:
- return (&mips_howto_table_ext[MIPS_RELOC_WDISP16]);
- case BFD_RELOC_HI16:
- return (&mips_howto_table_ext[MIPS_RELOC_HI16]);
- case BFD_RELOC_HI16_S:
- return (&mips_howto_table_ext[MIPS_RELOC_HI16_S]);
- case BFD_RELOC_LO16:
- return (&mips_howto_table_ext[MIPS_RELOC_LO16]);
- default:
- return 0;
- }
+ case BFD_RELOC_32:
+ return (&mips_howto_table_ext[MIPS_RELOC_32]);
+ case BFD_RELOC_MIPS_JMP:
+ return (&mips_howto_table_ext[MIPS_RELOC_JMP]);
+ case BFD_RELOC_16_PCREL_S2:
+ return (&mips_howto_table_ext[MIPS_RELOC_WDISP16]);
+ case BFD_RELOC_HI16:
+ return (&mips_howto_table_ext[MIPS_RELOC_HI16]);
+ case BFD_RELOC_HI16_S:
+ return (&mips_howto_table_ext[MIPS_RELOC_HI16_S]);
+ case BFD_RELOC_LO16:
+ return (&mips_howto_table_ext[MIPS_RELOC_LO16]);
default:
return 0;
}