ld: Add --enable-separate-code
[deliverable/binutils-gdb.git] / bfd / elf32-microblaze.c
index f1808bc4450d967eece94b18106ba3aafbfbbe4c..3acf93a44fc329cae8a82550d63173fda8aefa47 100644 (file)
@@ -638,8 +638,8 @@ microblaze_elf_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED,
 
 /* Set the howto pointer for a RCE ELF reloc.  */
 
-static void
-microblaze_elf_info_to_howto (bfd * abfd ATTRIBUTE_UNUSED,
+static bfd_boolean
+microblaze_elf_info_to_howto (bfd * abfd,
                              arelent * cache_ptr,
                              Elf_Internal_Rela * dst)
 {
@@ -653,13 +653,14 @@ microblaze_elf_info_to_howto (bfd * abfd ATTRIBUTE_UNUSED,
   if (r_type >= R_MICROBLAZE_max)
     {
       /* xgettext:c-format */
-      _bfd_error_handler (_("%B: unrecognised MicroBlaze reloc number: %d"),
+      _bfd_error_handler (_("%pB: unsupported relocation type %#x"),
                          abfd, r_type);
       bfd_set_error (bfd_error_bad_value);
-      r_type = R_MICROBLAZE_NONE;
+      return FALSE;
     }
 
   cache_ptr->howto = microblaze_elf_howto_table [r_type];
+  return TRUE;
 }
 
 /* Microblaze ELF local labels start with 'L.' or '$L', not '.L'.  */
@@ -929,7 +930,7 @@ microblaze_elf_relocate_section (bfd *output_bfd,
       if (r_type < 0 || r_type >= (int) R_MICROBLAZE_max)
        {
          /* xgettext:c-format */
-         _bfd_error_handler (_("%B: unknown relocation type %d"),
+         _bfd_error_handler (_("%pB: unsupported relocation type %#x"),
                              input_bfd, (int) r_type);
          bfd_set_error (bfd_error_bad_value);
          ret = FALSE;
@@ -1061,8 +1062,8 @@ microblaze_elf_relocate_section (bfd *output_bfd,
                      {
                        _bfd_error_handler
                          /* xgettext:c-format */
-                         (_("%B: The target (%s) of an %s relocation"
-                            " is in the wrong section (%A)"),
+                         (_("%pB: the target (%s) of an %s relocation"
+                            " is in the wrong section (%pA)"),
                           input_bfd,
                           sym_name,
                           microblaze_elf_howto_table[(int) r_type]->name,
@@ -1109,8 +1110,8 @@ microblaze_elf_relocate_section (bfd *output_bfd,
                      {
                        _bfd_error_handler
                          /* xgettext:c-format */
-                         (_("%B: The target (%s) of an %s relocation"
-                            " is in the wrong section (%A)"),
+                         (_("%pB: the target (%s) of an %s relocation"
+                            " is in the wrong section (%pA)"),
                           input_bfd,
                           sym_name,
                           microblaze_elf_howto_table[(int) r_type]->name,
@@ -1479,7 +1480,7 @@ microblaze_elf_relocate_section (bfd *output_bfd,
                          {
                            BFD_FAIL ();
                            _bfd_error_handler
-                             (_("%B: probably compiled without -fPIC?"),
+                             (_("%pB: probably compiled without -fPIC?"),
                               input_bfd);
                            bfd_set_error (bfd_error_bad_value);
                            return FALSE;
This page took 0.024273 seconds and 4 git commands to generate.