aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-maxq.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-maxq.c')
-rw-r--r--gas/config/tc-maxq.c83
1 files changed, 3 insertions, 80 deletions
diff --git a/gas/config/tc-maxq.c b/gas/config/tc-maxq.c
index e6987e1..c1a11af 100644
--- a/gas/config/tc-maxq.c
+++ b/gas/config/tc-maxq.c
@@ -90,7 +90,6 @@ union _maxq20_op
typedef union _maxq20_op maxq20_opcode;
/* For handling optional L/S in Maxq20. */
-#ifdef BFD_ASSEMBLER
/* Exposed For Linker - maps indirectly to the liker relocations. */
#define LONG_PREFIX MAXQ_LONGJUMP /* BFD_RELOC_16 */
@@ -100,16 +99,6 @@ typedef union _maxq20_op maxq20_opcode;
#define NO_PREFIX 0
#define EXPLICT_LONG_PREFIX 14
-#else
-
-#define EXPLICT_LONG_PREFIX 14
-#define LONG_PREFIX 5
-#define SHORT_PREFIX 1
-#define ABSOLUTE_ADDR_FOR_DATA 0
-#define NO_PREFIX 0
-
-#endif
-
/* The main instruction structure containing fields to describe instrn */
typedef struct _maxq20_insn
{
@@ -229,7 +218,6 @@ md_show_usage (FILE * stream)
"));
}
-#ifdef BFD_ASSEMBLER
unsigned long
maxq20_mach (void)
{
@@ -298,8 +286,6 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp)
return rel;
}
-#endif
-
/* md_estimate_size_before_relax()
Called just before relax() for rs_machine_dependent frags. The MAXQ
@@ -464,35 +450,13 @@ maxq20_cons_fix_new (fragS * frag, unsigned int off, unsigned int len,
return;
}
-short
-tc_coff_fix2rtype (fixS * fixP)
-{
- return fixP->fx_r_type;
-}
-
-int
-tc_coff_sizemachdep (fragS *fragP)
-{
- if (fragP->fr_next)
- return (fragP->fr_next->fr_address - fragP->fr_address);
-
- return 0;
-}
-
/* GAS will call this for every rs_machine_dependent fragment. The
instruction is compleated using the data from the relaxation pass. It may
also create any necessary relocations. */
-#ifdef BFD_ASSEMBLER
void
md_convert_frag (bfd * headers ATTRIBUTE_UNUSED,
segT seg ATTRIBUTE_UNUSED,
fragS * fragP)
-#else
-void
-md_convert_frag (object_headers * headers ATTRIBUTE_UNUSED,
- segT sec ATTRIBUTE_UNUSED,
- fragS * fragP)
-#endif
{
char *opcode;
offsetT target_address;
@@ -619,18 +583,10 @@ md_apply_fix (fixS *fixP, valueT *valT, segT seg ATTRIBUTE_UNUSED)
maxq_number_to_chars (p + 1, PFX0, 1);
}
-#ifdef BFD_ASSEMBLER
/* Remember value for tc_gen_reloc. */
fixP->fx_addnumber = *valT;
-#endif
}
- /* This prob can be fixed by defining tc_fix_adjustable. */
-#ifndef BFD_ASSEMBLER
- if (fixP->fx_addsy && S_GET_SEGMENT (fixP->fx_addsy))
- segment_info[S_GET_SEGMENT (fixP->fx_addsy)].dot = NULL;
-#endif
-
/* Some fixups generated by GAS which gets resovled before this this
func. is called need to be wriiten to the frag as here we are going
to go away with the relocations fx_done=1. */
@@ -728,16 +684,6 @@ const pseudo_typeS md_pseudo_table[] =
{NULL, 0, 0},
};
-#if defined(BFD_HEADERS)
-#ifdef RELSZ
-const int md_reloc_size = RELSZ; /* Coff headers. */
-#else
-const int md_reloc_size = 12; /* Something else headers. */
-#endif
-#else
-const int md_reloc_size = 12; /* Not bfdized. */
-#endif
-
#define SET_PFX_ARG(x) (PFX_INSN[1] = x)
@@ -1512,22 +1458,8 @@ maxq20_data (char *op_string)
if (symbolP != NULL
&& S_GET_SEGMENT (symbolP) != now_seg
- && S_GET_SEGMENT (symbolP) !=
-#ifdef BFD_ASSEMBLER
- bfd_und_section_ptr
-#else
- SEG_UNKNOWN
-#endif
- )
+ && S_GET_SEGMENT (symbolP) != bfd_und_section_ptr)
{
- int val_pfx;
-
-#ifdef BFD_ASSEMBLER
- val_pfx = 0;
-#else
- val_pfx = (symbolP->sy_value.X_add_number) >> 8;
-#endif
-
/* In case we do not want to always include the prefix instruction and
let the loader handle the job or in case of a 8 bit addressing mode,
we will just check for val_pfx to be equal to zero and then load the
@@ -1535,7 +1467,7 @@ maxq20_data (char *op_string)
loaded. */
/* The prefix register will have to be loaded automatically as we have
a 16 bit addressing field. */
- pfx_for_imm_val (val_pfx);
+ pfx_for_imm_val (0);
return symbolP;
}
@@ -1592,23 +1524,14 @@ maxq20_displacement (char *disp_start, char *disp_end)
#if (defined (OBJ_AOUT) || defined (OBJ_MAYBE_AOUT))
if (exp->X_op != O_constant
-#ifdef BFD_ASSEMBLER
&& OUTPUT_FLAVOR == bfd_target_aout_flavour
-#endif
&& exp_seg != absolute_section
&& exp_seg != text_section
&& exp_seg != data_section
&& exp_seg != bss_section && exp_seg != undefined_section
-#ifdef BFD_ASSEMBLER
- && !bfd_is_com_section (exp_seg)
-#endif
- )
+ && !bfd_is_com_section (exp_seg))
{
-#ifdef BFD_ASSEMBLER
as_bad (_("unimplemented segment %s in operand"), exp_seg->name);
-#else
- as_bad (_("unimplemented segment type %d in operand"), exp_seg);
-#endif
return 0;
}
#endif