aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-05-11 19:49:29 +0000
committerDoug Evans <dje@google.com>1998-05-11 19:49:29 +0000
commitcb74aaa54c05fb296625df46d852ad13bf97b6dc (patch)
treed6341f41a0623f4f01d43f8f28e9ed6a1fe2ae9e
parent4f6f7a3a1c6d63562a3258464deb29507e728834 (diff)
downloadgdb-cb74aaa54c05fb296625df46d852ad13bf97b6dc.zip
gdb-cb74aaa54c05fb296625df46d852ad13bf97b6dc.tar.gz
gdb-cb74aaa54c05fb296625df46d852ad13bf97b6dc.tar.bz2
* config/tc-dvp.c (md_begin): Set type of output file to mips:r5900.
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-dvp.c14
2 files changed, 14 insertions, 6 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index e675156..763b6a2 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+start-sanitize-sky
+Mon May 11 12:48:33 1998 Doug Evans <devans@canuck.cygnus.com>
+
+ * config/tc-dvp.c (md_begin): Set type of output file to mips:r5900.
+
+end-sanitize-sky
Sun May 10 22:35:02 1998 Jeffrey A Law (law@cygnus.com)
* po/Make-in (install-info): New target.
diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c
index c785da4..9b02c3e 100644
--- a/gas/config/tc-dvp.c
+++ b/gas/config/tc-dvp.c
@@ -21,7 +21,6 @@
#include <stdio.h>
#include <ctype.h>
-#include "sysdep.h"
#include "as.h"
#include "subsegs.h"
/* Needed by opcode/dvp.h. */
@@ -52,7 +51,7 @@
/* Prefix for mips version of labels defined in vu code.
Note that symbols that begin with '$' are local symbols
on mips targets, so we can't begin it with '$'. */
-#define VU_LABEL_PREFIX "._."
+#define VU_LABEL_PREFIX "_$"
static long parse_float PARAMS ((char **, const char **));
static symbolS * create_label PARAMS ((const char *, const char *));
@@ -290,6 +289,9 @@ md_begin ()
/* Create special symbols. */
mpgloc_sym = expr_build_uconstant (0);
+
+ /* Set the type of the output file to r5900. */
+ bfd_set_arch_mach (stdoutput, bfd_arch_mips, 5900);
}
/* We need to keep a list of fixups. We can't simply generate them as
@@ -1484,13 +1486,13 @@ dvp_frob_label (sym)
S_SET_OTHER (sym, STO_DVP_VU);
/* If inside an mpg, move vu space labels to their own section and create
- the corresponding ._. version in normal space. */
+ the corresponding _$ version in normal space. */
if (CUR_ASM_STATE == ASM_MPG
/* Only do this special processing for user specified symbols.
Not sure how we can distinguish them other than by some prefix. */
- && *name != '.'
- /* Check for recursive invocation creating the ._.name. */
+ && *name != '.' && *name != '$'
+ /* Check for recursive invocation creating the _$name. */
&& strncmp (name, VU_LABEL_PREFIX, sizeof (VU_LABEL_PREFIX) - 1) != 0)
{
/* Move this symbol to vu space. */
@@ -1500,7 +1502,7 @@ dvp_frob_label (sym)
sym->sy_value = cur_mpgloc->sy_value;
sym->sy_frag = &zero_address_frag;
- /* Create the ._. symbol in normal space. */
+ /* Create the _$ symbol in normal space. */
create_colon_label (STO_DVP_VU, VU_LABEL_PREFIX, name);
}
}