Set spliced LOAD segment's memsz equal to filesz.
Current packing sets the spliced LOAD segment's memsz to larger than
its filesz. This causes the runtime linker to create a 'zero' mapping
to pad from filesz to memsz.
This isn't a problem -- the mapping sits on already reserved address
space and uses no real memory -- but 'null' mappings like this appear
in /proc/pid/maps and can disrupt or confuse tools which read and
parse it, for example Breakpad.
This change makes the spliced LOAD segment's memsz and filesz equal.
It also tidies code a little so that it is now more obvious when
filesz is equal to memsz, and vaddr is equal to paddr.
Also, rebuild test data to match.
BUG=385553
Review URL: https://codereview.chromium.org/
571333003
Cr-Commit-Position: refs/heads/master@{#295459}