diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c7915b57b53..9db32edea3b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2015-07-23 Joseph Myers + + * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections) + : Add target address to host address + difference, not to host pointer. + 2015-07-22 Alan Modra * elf64-ppc.c (opd_entry_value): Remove assertion. Instead, diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 9932453658b..06e815823da 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -11515,7 +11515,7 @@ _bfd_mips_elf_finish_dynamic_sections (bfd *output_bfd, /* The MIPS_RLD_MAP_REL tag stores the offset to the debug pointer, relative to the address of the tag. */ dt_addr = (sdyn->output_section->vma + sdyn->output_offset - + b - sdyn->contents); + + (b - sdyn->contents)); rld_addr = (s->output_section->vma + s->output_offset + h->root.u.def.value); dyn.d_un.d_ptr = rld_addr - dt_addr;