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 02:53:31 +0000 (19:53 -0700)
commit18c935ceabb54a32aff42f99c6d20680ac333157
treec9a777f51c0108b133eedd19eb67c172f0df1508
parentf29640c2d8920c98f4cfd461d80c297a1cafa86a
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
tools/relocation_packer/src/elf_file.cc
tools/relocation_packer/src/elf_traits.h