aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sh.h
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-sh.h')
-rw-r--r--gas/config/tc-sh.h36
1 files changed, 2 insertions, 34 deletions
diff --git a/gas/config/tc-sh.h b/gas/config/tc-sh.h
index 4143aef..c533a87 100644
--- a/gas/config/tc-sh.h
+++ b/gas/config/tc-sh.h
@@ -1,6 +1,6 @@
/* This file is tc-sh.h
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- 2003, 2004 Free Software Foundation, Inc.
+ 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -60,16 +60,6 @@ extern int sh_force_relocation (struct fix *);
to know about all such entries so that it can adjust them if
necessary. */
-#ifdef BFD_ASSEMBLER
-#define SWITCH_TABLE_CONS(FIX) (0)
-#else
-#define SWITCH_TABLE_CONS(FIX) \
- ((FIX)->fx_r_type == 0 \
- && ((FIX)->fx_size == 2 \
- || (FIX)->fx_size == 1 \
- || (FIX)->fx_size == 4))
-#endif
-
#define SWITCH_TABLE(FIX) \
((FIX)->fx_addsy != NULL \
&& (FIX)->fx_subsy != NULL \
@@ -77,8 +67,7 @@ extern int sh_force_relocation (struct fix *);
&& S_GET_SEGMENT ((FIX)->fx_subsy) == text_section \
&& ((FIX)->fx_r_type == BFD_RELOC_32 \
|| (FIX)->fx_r_type == BFD_RELOC_16 \
- || (FIX)->fx_r_type == BFD_RELOC_8 \
- || SWITCH_TABLE_CONS (FIX)))
+ || (FIX)->fx_r_type == BFD_RELOC_8))
#define TC_FORCE_RELOCATION_SUB_SAME(FIX, SEC) \
(! SEG_NORMAL (SEC) \
@@ -122,27 +111,15 @@ extern void sh_frob_label (void);
extern void sh_flush_pending_output (void);
#define md_flush_pending_output() sh_flush_pending_output ()
-#ifdef BFD_ASSEMBLER
#define tc_frob_file_before_adjust sh_frob_file
-#else
-#define tc_frob_file sh_frob_file
-#endif
extern void sh_frob_file (void);
#ifdef OBJ_COFF
/* COFF specific definitions. */
-/* This macro translates between an internal fix and a coff reloc type. */
-#define TC_COFF_FIX2RTYPE(fix) ((fix)->fx_r_type)
-
-#define BFD_ARCH TARGET_ARCH
-
#define COFF_MAGIC (!target_big_endian ? SH_ARCH_MAGIC_LITTLE : SH_ARCH_MAGIC_BIG)
-/* We need to write out relocs which have not been completed. */
-#define TC_COUNT_RELOC(fix) ((fix)->fx_addsy != NULL)
-
#define TC_RELOC_MANGLE(seg, fix, int, paddr) \
sh_coff_reloc_mangle ((seg), (fix), (int), (paddr))
extern void sh_coff_reloc_mangle
@@ -151,18 +128,9 @@ extern void sh_coff_reloc_mangle
#define tc_coff_symbol_emit_hook(a) ; /* not used */
-#define NEED_FX_R_TYPE 1
-
#define TC_KEEP_FX_OFFSET 1
-#define TC_COFF_SIZEMACHDEP(frag) tc_coff_sizemachdep(frag)
-extern int tc_coff_sizemachdep (fragS *);
-
-#ifdef BFD_ASSEMBLER
#define SEG_NAME(SEG) segment_name (SEG)
-#else
-#define SEG_NAME(SEG) obj_segment_name (SEG)
-#endif
/* We align most sections to a 16 byte boundary. */
#define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) \