delete non-mips-related code

This commit is contained in:
Ken Raeburn 1993-03-23 20:19:16 +00:00
parent db15c6b17a
commit 07bb4e8abc

View File

@ -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,21 +231,9 @@ MY(reloc_howto_type_lookup) (abfd, code)
{
extern reloc_howto_type NAME(aout,ext_howto_table)[];
switch (bfd_get_arch (abfd))
{
case bfd_arch_sparc:
switch (code)
{
default:
if (bfd_get_arch (abfd) != bfd_arch_mips)
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:
@ -299,9 +251,6 @@ MY(reloc_howto_type_lookup) (abfd, code)
default:
return 0;
}
default:
return 0;
}
}
/*