aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-z8k.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-04-24 15:22:25 +0000
committerNick Clifton <nickc@redhat.com>2001-04-24 15:22:25 +0000
commit6840198f93340023b478d4df838efb37b9b27998 (patch)
treef456409a1dcc4b56504c63543d007a08d8649371 /gas/config/tc-z8k.c
parentb3baf5d0a8293b5f823c0d7848494507edb373fb (diff)
downloadgdb-6840198f93340023b478d4df838efb37b9b27998.zip
gdb-6840198f93340023b478d4df838efb37b9b27998.tar.gz
gdb-6840198f93340023b478d4df838efb37b9b27998.tar.bz2
z8k fixes
Diffstat (limited to 'gas/config/tc-z8k.c')
-rw-r--r--gas/config/tc-z8k.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/config/tc-z8k.c b/gas/config/tc-z8k.c
index d02125a..489a01b 100644
--- a/gas/config/tc-z8k.c
+++ b/gas/config/tc-z8k.c
@@ -1107,7 +1107,17 @@ build_bytes (this_try, operand)
*output_ptr++ = reg[c & 0xf];
break;
case CLASS_DISP:
+ switch (c & ARG_MASK)
+ {
+ case ARG_DISP12:
+ output_ptr = apply_fix (output_ptr, R_CALLR, da_operand, 4);
+ break;
+ case ARG_DISP16:
+ output_ptr = apply_fix (output_ptr, R_REL16, da_operand, 4);
+ break;
+ default:
output_ptr = apply_fix (output_ptr, R_IMM16, da_operand, 4);
+ }
da_operand = 0;
break;