diff options
author | Jim Wilson <wilson@tuliptree.org> | 1993-10-24 23:52:09 +0000 |
---|---|---|
committer | Jim Wilson <wilson@tuliptree.org> | 1993-10-24 23:52:09 +0000 |
commit | 52aa70b52dae1d03a523b1692d678556c9cad68c (patch) | |
tree | 4d59e218ffb2716d549d939fba485f1069d78056 /gas/config | |
parent | abe28b921434c6ca63208f33a3b4a65b33f867f4 (diff) | |
download | gdb-52aa70b52dae1d03a523b1692d678556c9cad68c.zip gdb-52aa70b52dae1d03a523b1692d678556c9cad68c.tar.gz gdb-52aa70b52dae1d03a523b1692d678556c9cad68c.tar.bz2 |
Add support for .dword pseudo op to mips port.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-mips.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 176276f..8da2027 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -257,6 +257,7 @@ const pseudo_typeS md_pseudo_table[] = {"bss", s_change_sec, 'b'}, {"err", s_err, 0}, {"half", s_cons, 1}, + {"dword", s_cons, 3}, /* These pseudo-ops are defined in read.c, but must be overridden here for one reason or another. */ @@ -3586,7 +3587,7 @@ my_getSmallExpression (ep, str) } else { - ep->X_op = O_absent; + ep->X_op = O_constant; expr_end = sp; } ep->X_add_symbol = NULL; @@ -4446,7 +4447,12 @@ tc_gen_reloc (section, fixp) reloc->addend = -reloc->address; #endif reloc->howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type); - assert (reloc->howto != 0); + if (reloc->howto == NULL) + { + as_bad_where (fixp->fx_file, fixp->fx_line, + "Can not represent relocation in this object file format"); + return NULL; + } return reloc; } |