assorted target messages
[binutils-gdb.git] / bfd / elf32-wasm32.c
index 3d9b7118c6a005c5198e2da9407a6d7a05fa4331..b9f3cb2c45e14ee8088c5bf221e56c204331d8a3 100644 (file)
@@ -1,5 +1,5 @@
 /* 32-bit ELF for the WebAssembly target
-   Copyright (C) 2017 Free Software Foundation, Inc.
+   Copyright (C) 2017-2018 Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
@@ -103,8 +103,8 @@ elf32_wasm32_rtype_to_howto (bfd *abfd, unsigned r_type)
   if (i >= ARRAY_SIZE (elf32_wasm32_howto_table))
     {
       /* xgettext:c-format */
-      _bfd_error_handler (_("%B: invalid relocation type %d"),
-                         abfd, (int) r_type);
+      _bfd_error_handler (_("%pB: unsupported relocation type %#x"),
+                         abfd, r_type);
       i = R_WASM32_NONE;
     }
 
@@ -117,7 +117,7 @@ elf32_wasm32_rtype_to_howto (bfd *abfd, unsigned r_type)
 /* Translate the ELF-internal relocation RELA into CACHE_PTR.  */
 
 static void
-elf32_wasm32_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED,
+elf32_wasm32_info_to_howto_rela (bfd *abfd,
                                arelent *cache_ptr,
                                Elf_Internal_Rela *dst)
 {