Improve the speed of scanning PE binaries for line number information.
[binutils-gdb.git] / bfd / elf32-sh-symbian.c
index fc2d36b7365d02f0c48e44dc254e78ceb1f554ca..8be6637839a791c21abc5e60d78263b17b75a4cf 100644 (file)
@@ -1,5 +1,5 @@
 /* Renesas / SuperH specific support for Symbian 32-bit ELF files
-   Copyright (C) 2004-2015 Free Software Foundation, Inc.
+   Copyright (C) 2004-2017 Free Software Foundation, Inc.
    Contributed by Red Hat
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -126,6 +126,7 @@ sh_symbian_import_as (struct bfd_link_info *info, bfd * abfd,
          return TRUE;
 
        bfd_set_error (bfd_error_invalid_operation);
+       /* xgettext:c-format */
        _bfd_error_handler (_("%B: IMPORT AS directive for %s conceals previous IMPORT AS"),
                            abfd, current_name);
        return FALSE;
@@ -379,6 +380,7 @@ sh_symbian_process_embedded_commands (struct bfd_link_info *info, bfd * abfd,
                     (long) (directive - (char *) contents));
 
          bfd_set_error (bfd_error_invalid_operation);
+         /* xgettext:c-format */
          _bfd_error_handler (_("%B: Unrecognised .directive command: %s"),
                              abfd, directive);
          break;
@@ -432,7 +434,7 @@ sh_symbian_relocate_section (bfd *                  output_bfd,
                             asection **            local_sections)
 {
   /* When performing a final link we implement the IMPORT AS directives.  */
-  if (!info->relocatable)
+  if (!bfd_link_relocatable (info))
     {
       Elf_Internal_Rela *            rel;
       Elf_Internal_Rela *            relend;
@@ -496,6 +498,7 @@ sh_symbian_relocate_section (bfd *                  output_bfd,
 
          if (new_hash == NULL)
            {
+             /* xgettext:c-format */
              _bfd_error_handler (_("%B: Failed to add renamed symbol %s"),
                                  input_bfd, ptr->new_name);
              continue;