From: Doug Evans Date: Mon, 11 May 1998 19:49:29 +0000 (+0000) Subject: * config/tc-dvp.c (md_begin): Set type of output file to mips:r5900. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb74aaa54c05fb296625df46d852ad13bf97b6dc;p=binutils-gdb.git * config/tc-dvp.c (md_begin): Set type of output file to mips:r5900. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index e675156059f..763b6a20074 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +start-sanitize-sky +Mon May 11 12:48:33 1998 Doug Evans + + * 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 c785da42589..9b02c3e8ac8 100644 --- a/gas/config/tc-dvp.c +++ b/gas/config/tc-dvp.c @@ -21,7 +21,6 @@ #include #include -#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); } }