OSDN Git Service

Adjust DT_MIPS_RLD_MAP2 value
authorDmitriy Ivanov <dimitry@google.com>
Thu, 30 Apr 2015 02:34:51 +0000 (19:34 -0700)
committerDmitriy Ivanov <dimitry@google.com>
Thu, 30 Apr 2015 05:10:53 +0000 (22:10 -0700)
commit126b5efa9d2fa0956a12a66305d7a4dac7feb4f9
treee5f7cfaa56da09ac96cedc189200ea347f2e0f5f
parent0b9e1c6051a6c75bf9040fd1da6109988900d0ac
Adjust DT_MIPS_RLD_MAP2 value

  DT_MIPS_RLD_MAP2 stores the difference between dynamic
  entry address and the address of the _r_debug (used by GDB)
  since the dynamic section and target address are on the
  different sides of the hole it needs to be adjusted accordingly

Bug: http://b/20658994
Bug: http://b/18051137
Change-Id: I4c5e379e8a4c68f029467df6dc660f81a7013a09
(cherry picked from commit 18c935ceabb54a32aff42f99c6d20680ac333157)
tools/relocation_packer/src/elf_file.cc
tools/relocation_packer/src/elf_traits.h