X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Felf32-gen.c;h=c2fd820385736ac4a87632c6cf507c3bb8e00cf1;hb=831bd6aa3b2d5e36c94b89756f58bb99f35026ca;hp=412fefd16eb577a01cedbca1e5461e2b057eaa2d;hpb=6d00b590316c0b08de21a264893b0fd627c54686;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/elf32-gen.c b/bfd/elf32-gen.c index 412fefd16e..c2fd820385 100644 --- a/bfd/elf32-gen.c +++ b/bfd/elf32-gen.c @@ -1,5 +1,5 @@ /* Generic support for 32-bit ELF - Copyright (C) 1993-2014 Free Software Foundation, Inc. + Copyright (C) 1993-2019 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -41,20 +41,22 @@ static reloc_howto_type dummy = 0, /* dst_mask */ FALSE); /* pcrel_offset */ -static void +static bfd_boolean elf_generic_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *bfd_reloc, Elf_Internal_Rela *elf_reloc ATTRIBUTE_UNUSED) { bfd_reloc->howto = &dummy; + return TRUE; } -static void +static bfd_boolean elf_generic_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED, arelent *bfd_reloc, Elf_Internal_Rela *elf_reloc ATTRIBUTE_UNUSED) { bfd_reloc->howto = &dummy; + return TRUE; } static void @@ -65,7 +67,8 @@ check_for_relocs (bfd * abfd, asection * o, void * failed) Elf_Internal_Ehdr *ehdrp; ehdrp = elf_elfheader (abfd); - _bfd_error_handler (_("%B: Relocations in generic ELF (EM: %d)"), + /* xgettext:c-format */ + _bfd_error_handler (_("%pB: relocations in generic ELF (EM: %d)"), abfd, ehdrp->e_machine); bfd_set_error (bfd_error_wrong_format);