Eliminate most remaining cleanups under gdb/guile/
[deliverable/binutils-gdb.git] / bfd / elfxx-riscv.c
index 5454c4bfebcbbe7ec30ef0f4320a9b2a26230e6c..7d4f59f1a0f723e7d9d147cda7ad9b196f4c1c8f 100644 (file)
@@ -1,5 +1,5 @@
 /* RISC-V-specific support for ELF.
-   Copyright (C) 2011-2017 Free Software Foundation, Inc.
+   Copyright (C) 2011-2018 Free Software Foundation, Inc.
 
    Contributed by Andrew Waterman (andrew@sifive.com).
    Based on TILE-Gx and MIPS targets.
@@ -948,11 +948,12 @@ riscv_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED, const char *r_name)
 }
 
 reloc_howto_type *
-riscv_elf_rtype_to_howto (unsigned int r_type)
+riscv_elf_rtype_to_howto (bfd *abfd, unsigned int r_type)
 {
   if (r_type >= ARRAY_SIZE (howto_table))
     {
-      (*_bfd_error_handler) (_("unrecognized relocation (0x%x)"), r_type);
+      (*_bfd_error_handler) (_("%pB: unsupported relocation type %#x"),
+                            abfd, r_type);
       bfd_set_error (bfd_error_bad_value);
       return NULL;
     }
This page took 0.023929 seconds and 4 git commands to generate.