unrecognized/unsupported reloc message
[deliverable/binutils-gdb.git] / bfd / elf32-ip2k.c
index 3733ebb2fba2501e3d8e21a9661e98263da51aa9..aa935243d9ca69db4616352d3a13922489a6da4f 100644 (file)
@@ -1232,7 +1232,7 @@ ip2k_elf_relax_section (bfd *abfd,
 /* Set the howto pointer for a IP2K ELF reloc.  */
 
 static void
-ip2k_info_to_howto_rela (bfd * abfd ATTRIBUTE_UNUSED,
+ip2k_info_to_howto_rela (bfd * abfd,
                         arelent * cache_ptr,
                         Elf_Internal_Rela * dst)
 {
@@ -1242,7 +1242,8 @@ ip2k_info_to_howto_rela (bfd * abfd ATTRIBUTE_UNUSED,
   if (r_type >= (unsigned int) R_IP2K_max)
     {
       /* xgettext:c-format */
-      _bfd_error_handler (_("%B: invalid IP2K reloc number: %d"), abfd, r_type);
+      _bfd_error_handler (_("%pB: unsupported relocation type %#x"),
+                         abfd, r_type);
       r_type = 0;
     }
   cache_ptr->howto = & ip2k_elf_howto_table [r_type];
@@ -1295,9 +1296,11 @@ ip2k_final_link_relocate (reloc_howto_type *  howto,
              ip2k_nominal_page_bits (input_bfd, input_section,
                                      rel->r_offset, contents))
            /* xgettext:c-format */
-           _bfd_error_handler (_("ip2k linker: missing page instruction at %#Lx (dest = %#Lx)"),
-                               BASEADDR (input_section) + rel->r_offset,
-                               relocation + rel->r_addend);
+           _bfd_error_handler
+             (_("ip2k linker: missing page instruction "
+                "at %#" PRIx64 " (dest = %#" PRIx64 ")"),
+              (uint64_t) (BASEADDR (input_section) + rel->r_offset),
+              (uint64_t) (relocation + rel->r_addend));
        }
       else if (ip2k_relaxed)
        {
@@ -1312,9 +1315,11 @@ ip2k_final_link_relocate (reloc_howto_type *  howto,
                  ip2k_nominal_page_bits (input_bfd, input_section,
                                          rel->r_offset - 2, contents)))
            /* xgettext:c-format */
-           _bfd_error_handler (_("ip2k linker: redundant page instruction at %#Lx (dest = %#Lx)"),
-                               page_addr,
-                               relocation + rel->r_addend);
+           _bfd_error_handler
+             (_("ip2k linker: redundant page instruction "
+                "at %#" PRIx64 " (dest = %#" PRIx64 ")"),
+              (uint64_t) page_addr,
+              (uint64_t) (relocation + rel->r_addend));
        }
       if ((relocation & IP2K_INSN_MASK) == IP2K_INSN_VALUE)
        relocation &= ~IP2K_INSN_MASK;
This page took 0.02587 seconds and 4 git commands to generate.