Update DT_RELA* fields when packing relocations with addends.
commit3c41f25a2eaca206c0abd20d1462062b17fe9f13
authorsimonb@chromium.org <simonb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 15 Aug 2014 18:40:17 +0000 (15 18:40 +0000)
committersimonb@chromium.org <simonb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 15 Aug 2014 18:42:07 +0000 (15 18:42 +0000)
treeb324da9060219caf8f5fe07276cdacafa60c9611
parentde7feec08a3e4723510a3b5b87cca6ff95a8ef11
Update DT_RELA* fields when packing relocations with addends.

If the shared libary being packed uses relocations with addends,
update DT_RELASZ and DT_RELACOUNT instead of DT_RELSZ and DT_RELCOUNT.
Check DT_RELAENT instead of DT_RELENT.

Update unit test data to match.

BUG=385553

Review URL: https://codereview.chromium.org/474283002

Cr-Commit-Position: refs/heads/master@{#289950}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289950 0039d316-1c4b-4281-b951-d872f2087c98
tools/relocation_packer/src/elf_file.cc
tools/relocation_packer/test_data/elf_file_unittest_relocs_arm64_packed.so