Added code to cope with a constant offset to a ZDA relocation.
authorNick Clifton <nickc@redhat.com>
Thu, 18 Sep 1997 21:09:14 +0000 (21:09 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 18 Sep 1997 21:09:14 +0000 (21:09 +0000)
gas/ChangeLog
gas/config/tc-v850.c

index d0f7e29a57d23bdd07343d99bd138fbd8eee1e9f..8e68fd85a5e6db14d81878af410478907c116794 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep 18 14:11:56 1997  Nick Clifton  <nickc@cygnus.com>
+
+       * config/tc-v850.c (md_assemble): Cope with a zero data area
+       relocation with a constant offset.
+
 Thu Sep 18 11:24:01 1997  Doug Evans  <dje@canuck.cygnus.com>
 
        * config/tc-sparc.c (parse_keyword_arg): Allow numbers in reg names.
index b18cf24353da7c56fa975bcfd54b266df1165e1a..48ee16e9ec0d4a7d0a57628ac2eaa6a7c32a39bf 100644 (file)
@@ -1248,6 +1248,10 @@ md_assemble (str)
                {
                  switch (reloc)
                    {
+                   case BFD_RELOC_V850_ZDA_16_16_OFFSET:
+                     /* To cope with "not1 7, zdaoff(0xfffff006)[r0]"  and the like.  */
+                     /* Fall through.  */
+                     
                    case BFD_RELOC_LO16:
                      {
                        /* Truncate, then sign extend the value.  */
@@ -1287,9 +1291,10 @@ md_assemble (str)
                      ex.X_add_number       = 0;
                      break;
 /* end-sanitize-v850e */
-                        
+                     
                    default:
-                     as_bad ( "AAARG -> unhandled constant reloc");
+                     fprintf (stderr, "reloc: %d\n", reloc);
+                     as_bad ("AAARG -> unhandled constant reloc");
                      break;
                    }