aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-v850.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2014-05-17 17:45:18 +0100
committerNick Clifton <nickc@redhat.com>2014-05-17 17:48:44 +0100
commit77f730a2f5cef30db27d251d9006284252903d24 (patch)
treecc1084e7c881da5970efc9d96c985849456062be /gas/config/tc-v850.c
parenta7c7b2ba6c8a9603ab36293dc74182438ef28b21 (diff)
downloadgdb-77f730a2f5cef30db27d251d9006284252903d24.zip
gdb-77f730a2f5cef30db27d251d9006284252903d24.tar.gz
gdb-77f730a2f5cef30db27d251d9006284252903d24.tar.bz2
Prevent the V850 assembler from generating an internal error if it is asked to
handle a ctoff() pseudo-op when running in RH850 ABI mode. PR gas/16946 * config/tc-v850.c (handle_ctoff): Generate an error if called when using the RH850 ABI.
Diffstat (limited to 'gas/config/tc-v850.c')
-rw-r--r--gas/config/tc-v850.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c
index d5b9d7a..91acec4 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;