diff options
author | John Darrington <john@darrington.wattle.id.au> | 2019-02-01 17:42:54 +0100 |
---|---|---|
committer | John Darrington <john@darrington.wattle.id.au> | 2019-02-01 18:08:08 +0100 |
commit | c6f14c0d2ca4d68308f967c446277789047a980a (patch) | |
tree | c07f41f2cd76f9b11458e80f73568fca72a06b2c /gdb/python | |
parent | 91bae99160e9d81cfe340b937f9613d43dc90293 (diff) | |
download | binutils-c6f14c0d2ca4d68308f967c446277789047a980a.zip binutils-c6f14c0d2ca4d68308f967c446277789047a980a.tar.gz binutils-c6f14c0d2ca4d68308f967c446277789047a980a.tar.bz2 |
S12Z: GAS: Allow #_symbol operands as mov source
mov.l, mov.p and mov.w (but not mov.b) when called with an immediate source
operand should be accepted a relocatable expression. This change makes that
possible.
gas/
* config/tc-s12z.c (lex_imm): Add new argument exp_o.
(emit_reloc): New function.
(md_apply_fix): [BFD_RELOC_S12Z_OPR] Recognise that it
can be either 2 bytes or 3 bytes long.
* testsuite/gas/s12z/mov-imm-reloc.d: New file.
* testsuite/gas/s12z/mov-imm-reloc.s: New file.
* testsuite/gas/s12z/s12z.exp: Add them.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions