aboutsummaryrefslogtreecommitdiff
path: root/bfd
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
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')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-ppc.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 044d95e..3c4ba5f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2011-03-10 Alan Modra <amodra@gmail.com>
+ * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
+ for LO_DS error message and correct multiple.
+
+2011-03-10 Alan Modra <amodra@gmail.com>
+
* elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
(ppc64_elf_link_just_syms): New function.
(opd_entry_value): Don't assume big-endian host.
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);