Make preserved alignment equal to PAGE_SIZE.
commit5cd648405db836c04870f24b894eea4ba07df900
authorsimonb@chromium.org <simonb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 1 Aug 2014 14:43:45 +0000 (1 14:43 +0000)
committersimonb@chromium.org <simonb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 1 Aug 2014 14:43:45 +0000 (1 14:43 +0000)
tree842cd30cb524cf41c374b3ee138b44868d4fea7a
parentf96248c33f932945292db6f821f26433a36a4575
Make preserved alignment equal to PAGE_SIZE.

Make preserved alignment 4096 bytes.  Increase the number of relative
relocations in the test data so that before packing it exceeds this.
See http://www.airs.com/blog/archives/189 for motivation.

Fix a bug where sections that are not part of the process image (for
example, debug and strings data) were being inadvertently scanned for
possible relocation targets.

Small readability improvements.

BUG=385553

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286996 0039d316-1c4b-4281-b951-d872f2087c98
tools/relocation_packer/src/delta_encoder.cc
tools/relocation_packer/src/elf_file.cc
tools/relocation_packer/src/elf_file.h
tools/relocation_packer/test_data/elf_file_unittest_relocs.cc
tools/relocation_packer/test_data/elf_file_unittest_relocs_arm32.so
tools/relocation_packer/test_data/elf_file_unittest_relocs_arm32_packed.so
tools/relocation_packer/test_data/elf_file_unittest_relocs_arm64.so
tools/relocation_packer/test_data/elf_file_unittest_relocs_arm64_packed.so