From 6840198f93340023b478d4df838efb37b9b27998 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 24 Apr 2001 15:22:25 +0000 Subject: z8k fixes --- gas/config/tc-z8k.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gas/config/tc-z8k.c') diff --git a/gas/config/tc-z8k.c b/gas/config/tc-z8k.c index d02125a2c89..489a01b6eec 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; -- cgit v1.2.1