mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 13:27:26 +08:00
Add support for .dword pseudo op to mips port.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
Sun Oct 24 16:49:00 1993 Jim Wilson (wilson@x1.cygnus.com)
|
||||||
|
|
||||||
|
* tc-mips.c (md_pseudo_table): Add dword pseudo op.
|
||||||
|
|
||||||
Fri Oct 22 20:40:56 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
|
Fri Oct 22 20:40:56 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
|
||||||
|
|
||||||
* messages.c: replaced all variables called Format with 'format',
|
* messages.c: replaced all variables called Format with 'format',
|
||||||
|
@ -257,6 +257,7 @@ const pseudo_typeS md_pseudo_table[] =
|
|||||||
{"bss", s_change_sec, 'b'},
|
{"bss", s_change_sec, 'b'},
|
||||||
{"err", s_err, 0},
|
{"err", s_err, 0},
|
||||||
{"half", s_cons, 1},
|
{"half", s_cons, 1},
|
||||||
|
{"dword", s_cons, 3},
|
||||||
|
|
||||||
/* These pseudo-ops are defined in read.c, but must be overridden
|
/* These pseudo-ops are defined in read.c, but must be overridden
|
||||||
here for one reason or another. */
|
here for one reason or another. */
|
||||||
@ -3586,7 +3587,7 @@ my_getSmallExpression (ep, str)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ep->X_op = O_absent;
|
ep->X_op = O_constant;
|
||||||
expr_end = sp;
|
expr_end = sp;
|
||||||
}
|
}
|
||||||
ep->X_add_symbol = NULL;
|
ep->X_add_symbol = NULL;
|
||||||
@ -4446,7 +4447,12 @@ tc_gen_reloc (section, fixp)
|
|||||||
reloc->addend = -reloc->address;
|
reloc->addend = -reloc->address;
|
||||||
#endif
|
#endif
|
||||||
reloc->howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type);
|
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;
|
return reloc;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user