Skip gdb.threads/thread_events.exp on RSP targets properly
[binutils-gdb.git] / bfd / coff-mcore.c
index 53c5d369fea9fd583ba56a6ee25ee505083b87b4..e770afd75d6580e17773b7a2c77269a9401ab40c 100644 (file)
@@ -1,5 +1,5 @@
 /* BFD back-end for Motorola MCore COFF/PE
-   Copyright (C) 1999-2015 Free Software Foundation, Inc.
+   Copyright (C) 1999-2017 Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
@@ -241,6 +241,7 @@ mcore_coff_unsupported_reloc (bfd * abfd,
 {
   BFD_ASSERT (reloc_entry->howto != (reloc_howto_type *)0);
 
+  /* xgettext: c-format */
   _bfd_error_handler (_("%B: Relocation %s (%d) is not currently supported.\n"),
                      abfd,
                      reloc_entry->howto->name,
@@ -365,7 +366,8 @@ coff_mcore_relocate_section (bfd * output_bfd,
   if (   input_bfd->xvec->byteorder != output_bfd->xvec->byteorder
       && output_bfd->xvec->byteorder != BFD_ENDIAN_UNKNOWN)
     {
-      (*_bfd_error_handler)
+      _bfd_error_handler
+       /* xgettext: c-format */
        (_("%B: compiled for a %s system and target is %s.\n"),
         input_bfd,
          bfd_big_endian (input_bfd) ? _("big endian") : _("little endian"),
@@ -454,12 +456,9 @@ coff_mcore_relocate_section (bfd * output_bfd,
                     + sec->output_offset);
            }
          else
-           {
-             if (! ((*info->callbacks->undefined_symbol)
-                    (info, h->root.root.string, input_bfd, input_section,
-                     rel->r_vaddr - input_section->vma, TRUE)))
-               return FALSE;
-           }
+           (*info->callbacks->undefined_symbol)
+             (info, h->root.root.string, input_bfd, input_section,
+              rel->r_vaddr - input_section->vma, TRUE);
 
          my_name = h->root.root.string;
        }
@@ -470,6 +469,7 @@ coff_mcore_relocate_section (bfd * output_bfd,
       switch (r_type)
        {
        default:
+         /* xgettext: c-format */
          _bfd_error_handler (_("%B: unsupported relocation type 0x%02x"),
                              input_bfd, r_type);
          bfd_set_error (bfd_error_bad_value);
@@ -477,11 +477,11 @@ coff_mcore_relocate_section (bfd * output_bfd,
 
        case IMAGE_REL_MCORE_ABSOLUTE:
          _bfd_error_handler
+           /* xgettext: c-format */
            (_("Warning: unsupported reloc %s <file %B, section %A>\n"
-              "sym %ld (%s), r_vaddr %ld (%lx)"),
-            input_bfd, input_section, howto->name,
-            rel->r_symndx, my_name, (long) rel->r_vaddr,
-            (unsigned long) rel->r_vaddr);
+              "sym %ld (%s), r_vaddr %Ld (%#Lx)"),
+            howto->name, input_bfd, input_section,
+            rel->r_symndx, my_name, rel->r_vaddr, rel->r_vaddr);
          break;
 
        case IMAGE_REL_MCORE_PCREL_IMM8BY4:
@@ -519,11 +519,10 @@ coff_mcore_relocate_section (bfd * output_bfd,
          break;
 
        case bfd_reloc_overflow:
-         if (! ((*info->callbacks->reloc_overflow)
-                (info, (h ? &h->root : NULL), my_name, howto->name,
-                 (bfd_vma) 0, input_bfd,
-                 input_section, rel->r_vaddr - input_section->vma)))
-           return FALSE;
+         (*info->callbacks->reloc_overflow)
+           (info, (h ? &h->root : NULL), my_name, howto->name,
+            (bfd_vma) 0, input_bfd,
+            input_section, rel->r_vaddr - input_section->vma);
        }
     }