summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2016-04-20 14:44:46 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-04-20 14:44:46 +0000
commit9adf19b554748ec5150dfac4795890e5958006a9 (patch)
tree26620c4c560b26a6f22ba23c7da78b5ad4a34e87
parent53b6c9f32834effacea9817cd699133c247971e4 (diff)
parent2b51ecbab101466172f47f38953929b1653210c1 (diff)
downloadtoolchain_binutils-9adf19b554748ec5150dfac4795890e5958006a9.tar.gz
toolchain_binutils-9adf19b554748ec5150dfac4795890e5958006a9.tar.bz2
toolchain_binutils-9adf19b554748ec5150dfac4795890e5958006a9.zip
Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host. am: d929cfd am: 1966aef
am: 2b51ecb * commit '2b51ecbab101466172f47f38953929b1653210c1': Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host. Change-Id: I7ec117c73928868416edf14e20a09ff6decadb0f
-rw-r--r--binutils-2.25/bfd/ChangeLog6
-rw-r--r--binutils-2.25/bfd/elfxx-mips.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils-2.25/bfd/ChangeLog b/binutils-2.25/bfd/ChangeLog
index f3c81a86..f229d666 100644
--- a/binutils-2.25/bfd/ChangeLog
+++ b/binutils-2.25/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2015-07-23 Joseph Myers <joseph@codesourcery.com>
+
+ * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections)
+ <DT_MIPS_RLD_MAP_REL>: Add target address to host address
+ difference, not to host pointer.
+
2015-06-26 Matthew Fortune <matthew.fortune@imgtec.com>
* elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Use executable
diff --git a/binutils-2.25/bfd/elfxx-mips.c b/binutils-2.25/bfd/elfxx-mips.c
index 3b777597..02440cdd 100644
--- a/binutils-2.25/bfd/elfxx-mips.c
+++ b/binutils-2.25/bfd/elfxx-mips.c
@@ -11520,7 +11520,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;