diff --git a/gas/ChangeLog b/gas/ChangeLog index fa1d46b50e..5db5e377ce 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2014-05-17 Nick Clifton + + PR gas/16946 + * config/tc-v850.c (handle_ctoff): Generate an error if called + when using the RH850 ABI. + 2014-05-16 Kaushik Phata * config/tc-rl78.c (enum options): Add OPTION_32BIT_DOUBLES diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c index d5b9d7ab26..91acec4e69 100644 --- a/gas/config/tc-v850.c +++ b/gas/config/tc-v850.c @@ -2029,6 +2029,12 @@ handle_lo16 (const struct v850_operand *operand, const char **errmsg) static bfd_reloc_code_real_type handle_ctoff (const struct v850_operand *operand, const char **errmsg) { + if (v850_target_arch == bfd_arch_v850_rh850) + { + *errmsg = _("ctoff() is not supported by the rh850 ABI. Use -mgcc-abi instead"); + return BFD_RELOC_64; /* Used to indicate an error condition. */ + } + if (operand == NULL) return BFD_RELOC_V850_CALLT_16_16_OFFSET;