aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-03-10 09:26:18 +0000
committerAlan Modra <amodra@gmail.com>2011-03-10 09:26:18 +0000
commite11840f950f6459e8a28198d4268cdb7e5e1c6a9 (patch)
tree70613bbb6ac2fc7035cdcd426d05f57527fdf841 /bfd/elf64-ppc.c
parentaa374f67f74f21000bdd8705018bb5f201c16104 (diff)
downloadgdb-e11840f950f6459e8a28198d4268cdb7e5e1c6a9.zip
gdb-e11840f950f6459e8a28198d4268cdb7e5e1c6a9.tar.gz
gdb-e11840f950f6459e8a28198d4268cdb7e5e1c6a9.tar.bz2
* elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
for LO_DS error message and correct multiple.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 4c35757..f17402f 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);