switch (code) { case BFD_RELOC_CTOR: 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; }
void MY(set_arch_mach) PARAMS ((bfd *abfd, int machtype));static void MY(choose_reloc_size) PARAMS ((bfd *abfd));#define MY_write_object_contents MY(write_object_contents)static boolean MY(write_object_contents) PARAMS ((bfd *abfd));/* We can't use MY(x) here because it leads to a recursive call to CAT   when expanded inside JUMP_TABLE.  */#define MY_bfd_reloc_type_lookup mipsbsd_reloc_howto_type_lookup#define MY_canonicalize_reloc mipsbsd_canonicalize_reloc#define MY_bfd_link_hash_table_create _bfd_generic_link_hash_table_create#define MY_bfd_link_add_symbols _bfd_generic_link_add_symbols#define MY_final_link_callback unused#define MY_bfd_final_link _bfd_generic_final_link#define MY_backend_data &MY(backend_data)#define MY_BFD_TARGET#include "aout-target.h"voidMY(set_arch_mach) (abfd, machtype)     bfd *abfd;     int machtype;{  enum bfd_architecture arch;  long machine;  /* Determine the architecture and machine type of the object file. */  switch (machtype) {  case M_MIPS1:    arch = bfd_arch_mips;    machine = 3000;    break;  case M_MIPS2:    arch = bfd_arch_mips;    machine = 4000;    break;  default:    arch = bfd_arch_obscure;    machine = 0;    break;  }  bfd_set_arch_mach(abfd, arch, machine);  }