aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-a29k.c5
-rw-r--r--gas/config/tc-h8500.c5
-rw-r--r--gas/config/tc-hppa.c18
-rw-r--r--gas/config/tc-m88k.c5
-rw-r--r--gas/config/tc-sparc.h35
-rw-r--r--gas/config/tc-tahoe.c5
6 files changed, 16 insertions, 57 deletions
diff --git a/gas/config/tc-a29k.c b/gas/config/tc-a29k.c
index ef929e4..5fa85bb 100644
--- a/gas/config/tc-a29k.c
+++ b/gas/config/tc-a29k.c
@@ -344,11 +344,6 @@ md_begin ()
define_some_regs ();
}
-void
-md_end ()
-{
-}
-
/* Assemble a single instruction. Its label has already been handled
by the generic front end. We just parse opcode and operands, and
produce the bytes of data and relocation. */
diff --git a/gas/config/tc-h8500.c b/gas/config/tc-h8500.c
index 2cea4dd..d4ffde9 100644
--- a/gas/config/tc-h8500.c
+++ b/gas/config/tc-h8500.c
@@ -1165,11 +1165,6 @@ DEFUN (tc_headers_hook, (headers),
printf ("call to tc_headers_hook \n");
}
-void
-DEFUN_VOID (md_end)
-{
-}
-
/* Various routines to kill one day */
/* Equal to MAX_PRECISION in atof-ieee.c */
#define MAX_LITTLENUMS 6
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index 735bf84..048cf25 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -723,6 +723,9 @@ static label_symbol_struct *label_symbols_rootp = NULL;
/* Holds the last field selector. */
static int hppa_field_selector;
+/* A dummy bfd symbol so that all relocations have symbols of some kind. */
+static asymbol *dummy_symbol;
+
/* Nonzero if errors are to be printed. */
static int print_errors = 1;
@@ -1352,14 +1355,9 @@ md_begin ()
/* SOM will change text_section. To make sure we never put
anything into the old one switch to the new one now. */
subseg_set (text_section, 0);
-}
-
-/* Called at the end of assembling a source file. Nothing to do
- at this point on the PA. */
-void
-md_end ()
-{
+ dummy_symbol = symbol_find_or_make ("L$dummy");
+ dummy_symbol->section = text_section;
}
/* Assemble a single instruction storing it into a frag. */
@@ -2744,8 +2742,12 @@ tc_gen_reloc (section, fixp)
case R_S_MODE:
case R_D_MODE:
case R_R_MODE:
+ case R_EXIT:
+ case R_FSEL:
+ case R_LSEL:
+ case R_RSEL:
/* There is no symbol or addend associated with these fixups. */
- relocs[i]->sym_ptr_ptr = 0;
+ relocs[i]->sym_ptr_ptr = dummy_symbol;
relocs[i]->addend = 0;
break;
diff --git a/gas/config/tc-m88k.c b/gas/config/tc-m88k.c
index eaf994f..70b1889 100644
--- a/gas/config/tc-m88k.c
+++ b/gas/config/tc-m88k.c
@@ -1161,11 +1161,6 @@ md_estimate_size_before_relax (fragP, segment_type)
const relax_typeS md_relax_table[] =
{0};
-void
-md_end ()
-{
-}
-
#if 0
/* As far as I can tell, this routine is never called. What is it
diff --git a/gas/config/tc-sparc.h b/gas/config/tc-sparc.h
index c59870e..f43f1f2 100644
--- a/gas/config/tc-sparc.h
+++ b/gas/config/tc-sparc.h
@@ -21,8 +21,6 @@
#define LOCAL_LABELS_FB
-#ifdef BFD_ASSEMBLER
-
#define TARGET_ARCH bfd_arch_sparc
#ifdef OBJ_AOUT
#define TARGET_FORMAT "a.out-sunos-big"
@@ -37,36 +35,15 @@
#define TARGET_FORMAT "elf64-sparc" /* v9 */
#define ENV64 /* v9 */
#endif /* sparcv9 */
-#define LOCAL_LABEL(name) ((name)[0] == '.')
+#define LOCAL_LABEL(name) ((name)[0] == '.' || !strncmp ((name), "_.L_", 4))
#endif
+#define WORKING_DOT_WORD
-#else
-
-#ifdef OBJ_BOUT
-#define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE ((0x103 << 16) | BMAGIC) /* Magic number for header */
-#else
-#ifdef OBJ_AOUT
-#define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE ((0x103 << 16) | OMAGIC) /* Magic number for header */
-#endif /* OBJ_AOUT */
-#endif /* OBJ_BOUT */
-
-#define AOUT_MACHTYPE 3
-
-#define NEED_FX_R_TYPE
-
-#define tc_headers_hook(a) {;} /* don't need it. */
-#define tc_crawl_symbol_chain(a) {;} /* don't need it. */
-
-#define TC_CONS_RELOC RELOC_32
-
-#endif /* BFD_ASSEMBLER */
-
-#ifndef BFD_ASSEMBLER
-#define md_convert_frag(h,f) {as_fatal ("sparc convert_frag\n");}
-#else
#define md_convert_frag(b,s,f) {as_fatal ("sparc convert_frag\n");}
-#endif
-
+#define md_create_long_jump(p,f,t,fr,s) as_fatal("sparc_create_long_jump")
+#define md_create_short_jump(p,f,t,fr,s) as_fatal("sparc_create_short_jump")
+#define md_estimate_size_before_relax(f,s) \
+ (as_fatal("estimate_size_before_relax called"),1)
void tc_aout_pre_write_hook ();
#define LISTING_HEADER "SPARC GAS "
diff --git a/gas/config/tc-tahoe.c b/gas/config/tc-tahoe.c
index f8a1fc5..17be9fe 100644
--- a/gas/config/tc-tahoe.c
+++ b/gas/config/tc-tahoe.c
@@ -370,11 +370,6 @@ md_begin ()
if (errorval)
as_fatal (errorval);
}
-
-void
-md_end ()
-{
-}
int
md_parse_option (argP, cntP, vecP)