From: Alan Modra Date: Thu, 10 Mar 2011 09:26:18 +0000 (+0000) Subject: * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e11840f950f6459e8a28198d4268cdb7e5e1c6a9;p=binutils-gdb.git * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset for LO_DS error message and correct multiple. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 044d95e03a2..3c4ba5f44da 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2011-03-10 Alan Modra + + * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset + for LO_DS error message and correct multiple. + 2011-03-10 Alan Modra * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define. diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 4c357570eed..f17402fad27 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -11655,7 +11655,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, bfd_boolean unresolved_reloc; bfd_boolean warned; unsigned int insn; - bfd_vma mask; + unsigned int mask; struct ppc_stub_hash_entry *stub_entry; bfd_vma max_br_offset; bfd_vma from; @@ -13191,8 +13191,8 @@ ppc64_elf_relocate_section (bfd *output_bfd, if (((relocation + addend) & mask) != 0) { (*_bfd_error_handler) - (_("%B: error: relocation %s not a multiple of %d"), - input_bfd, + (_("%B(%A+0x%lx): error: %s not a multiple of %u"), + input_bfd, input_section, (long) rel->r_offset, ppc64_elf_howto_table[r_type]->name, mask + 1); bfd_set_error (bfd_error_bad_value);